Sha256: 6f7814dabba9764a20315aa78f220437a0f5c3bf1f684afc736ac244e73132b6

Contents?: true

Size: 525 Bytes

Versions: 6

Compression:

Stored size: 525 Bytes

Contents

require 'ostruct'
require 'action_controller'
require 'active_model_exporters'
require 'minitest/autorun'
require 'minitest/unit'
require 'minitest/pride'
require 'fixtures/models'
require 'fixtures/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

6 entries across 6 versions & 1 rubygems

Version Path
active_model_exporters-0.1.0 test/test_helper.rb
active_model_exporters-0.0.5 test/test_helper.rb
active_model_exporters-0.0.4 test/test_helper.rb
active_model_exporters-0.0.3 test/test_helper.rb
active_model_exporters-0.0.2 test/test_helper.rb
active_model_exporters-0.0.1 test/test_helper.rb