From 23cd1a1b0ca1596dbe61cd81c85dd2bbfefb4c28 Mon Sep 17 00:00:00 2001 From: Alex Kitchens Date: Wed, 31 May 2017 11:12:58 -0500 Subject: [PATCH] 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. --- activerecord/test/cases/fixtures_test.rb | 2 ++ 1 file changed, 2 insertions(+) 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