1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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.
This commit is contained in:
Alex Kitchens 2017-05-31 11:12:58 -05:00
parent 18590e2809
commit 23cd1a1b0c

View file

@ -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