test/dummy/config/environments/test.rb in fabricators-0.1.0 vs test/dummy/config/environments/test.rb in fabricators-0.1.1
- 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
@@ -34,6 +38,10 @@
# Print deprecation notices to the stderr.
config.active_support.deprecation = :stderr
# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
+
+ if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2
+ config.active_support.test_order = :random
+ end
end