Sha256: d54357c6db0f69befeec17973add518311a99488ebb018aca9e2ea8d4ece2b2f

Contents?: true

Size: 572 Bytes

Versions: 12

Compression:

Stored size: 572 Bytes

Contents

class Foo < Rails::Application
  if Rails::VERSION::MAJOR >= 4
    config.eager_load = false
    config.secret_key_base = 'abc123'
    config.action_controller.perform_caching = true
    config.active_support.test_order = :random
    config.logger = Logger.new(nil)
    ActionController::Base.cache_store = :memory_store
  end
end
Foo.initialize!

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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
active_model_serializers-0.10.0.rc3 test/support/rails_app.rb
cheap_ams-0.10.11 test/support/rails_app.rb
cheap_ams-0.10.10 test/support/rails_app.rb
cheap_ams-0.10.8 test/support/rails_app.rb
cheap_ams-0.10.7 test/support/rails_app.rb
cheap_ams-0.10.6 test/support/rails_app.rb
cheap_ams-0.10.5 test/support/rails_app.rb
cheap_ams-0.10.4 test/support/rails_app.rb
cheap_ams-0.10.3 test/support/rails_app.rb
cheap_ams-0.10.2 test/support/rails_app.rb
cheap_ams-0.10.1 test/support/rails_app.rb
cheap_ams-0.10.0.rc2 test/support/rails_app.rb