aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRafael Mendonça França <rafael.franca@plataformatec.com.br>2014-09-10 22:34:55 -0300
committerRafael Mendonça França <rafael.franca@plataformatec.com.br>2014-09-10 22:34:55 -0300
commite4c529ea1d94ef548975e45b91a7fec045aeefbc (patch)
treea594ba431921d73e527e61f330f221a21382ef25 /railties
parent9ba9ce6e6829d5a5e9741ba8bcff19f7977a95b7 (diff)
downloadrails-e4c529ea1d94ef548975e45b91a7fec045aeefbc.tar.gz
rails-e4c529ea1d94ef548975e45b91a7fec045aeefbc.tar.bz2
rails-e4c529ea1d94ef548975e45b91a7fec045aeefbc.zip
Set the test order to be random in the generated app
This will avoid the warning in our tests. We delete all the config/environments/ files in the test app so our default code will not work.
Diffstat (limited to 'railties')
-rw-r--r--railties/test/isolation/abstract_unit.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb
index b38cc4277e..d4ec6dede8 100644
--- a/railties/test/isolation/abstract_unit.rb
+++ b/railties/test/isolation/abstract_unit.rb
@@ -140,6 +140,7 @@ module TestHelpers
config.eager_load = false
config.session_store :cookie_store, key: "_myapp_session"
config.active_support.deprecation = :log
+ config.active_support.test_order = :random
config.action_controller.allow_forgery_protection = false
RUBY
end