aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Kitchens <alexcameron98@gmail.com>2017-05-31 11:12:58 -0500
committerAlex Kitchens <alexcameron98@gmail.com>2017-05-31 11:12:58 -0500
commit23cd1a1b0ca1596dbe61cd81c85dd2bbfefb4c28 (patch)
tree86a9a601c3cc68cb7fcf0e79d778f9df6173f1e9
parent18590e2809f61eadd6694e333c26243413585ce4 (diff)
downloadrails-23cd1a1b0ca1596dbe61cd81c85dd2bbfefb4c28.tar.gz
rails-23cd1a1b0ca1596dbe61cd81c85dd2bbfefb4c28.tar.bz2
rails-23cd1a1b0ca1596dbe61cd81c85dd2bbfefb4c28.zip
Ensure fixtures are loaded for FoxyFixturesTest
Ensure that the fixtures are properly loaded for FoxyFixturesTest When tests are randomized, FoxyFixturesTest often fails due to unloaded fixtures.
-rw-r--r--activerecord/test/cases/fixtures_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/cases/fixtures_test.rb b/activerecord/test/cases/fixtures_test.rb
index a0a6d3c7ef..c79a56f5ee 100644
--- a/activerecord/test/cases/fixtures_test.rb
+++ b/activerecord/test/cases/fixtures_test.rb
@@ -809,6 +809,8 @@ class FasterFixturesTest < ActiveRecord::TestCase
end
class FoxyFixturesTest < ActiveRecord::TestCase
+ # Set to false to blow away fixtures cache and ensure our fixtures are loaded
+ self.use_transactional_tests = false
fixtures :parrots, :parrots_pirates, :pirates, :treasures, :mateys, :ships, :computers,
:developers, :"admin/accounts", :"admin/users", :live_parrots, :dead_parrots, :books