test/dummy/config/environments/test.rb in hyphenify-0.0.9 vs test/dummy/config/environments/test.rb in hyphenify-0.1.0

- old
+ new

@@ -11,11 +11,15 @@ # just for the purpose of running a single test. If you are using a tool that # preloads Rails for running tests, you may have to set it to true. config.eager_load = false # Configure static asset server for tests with Cache-Control for performance. - config.serve_static_assets = true + if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2 + config.serve_static_files = false + else + config.serve_static_assets = false + end config.static_cache_control = "public, max-age=3600" # Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false @@ -31,6 +35,10 @@ # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr + + if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2 + config.active_support.test_order = :random + end end