Sha256: 97ce2a41a1034ec6b0cad6ff0e03cd1ff2a3eec239a0e70cc58df92fc7e79d9f

Contents?: true

Size: 634 Bytes

Versions: 5

Compression:

Stored size: 634 Bytes

Contents

require 'ostruct'
require 'action_controller'
require 'active_model_exporters'
require 'minitest/autorun'
require 'minitest/unit'
require 'minitest/pride'
require 'fixtures/locale'
require 'fixtures/models'
require 'fixtures/exporters'
require 'fixtures/active_record/models'
require 'fixtures/active_record/exporters'

module TestHelper
  Routes = ActionDispatch::Routing::RouteSet.new
  Routes.draw do
    get ':controller(/:action(/:id))'
    get ':controller(/:action)'
  end

  ActionController::Base.send(:include, Routes.url_helpers)
end

class ActionController::TestCase
  def setup
    @routes = TestHelper::Routes
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_model_exporters-0.4.0 test/test_helper.rb
active_model_exporters-0.3.2 test/test_helper.rb
active_model_exporters-0.3.1 test/test_helper.rb
active_model_exporters-0.3.0 test/test_helper.rb
active_model_exporters-0.2.0 test/test_helper.rb