Kevin Olbrich
2005-Oct-28 13:49 UTC
[Rails 0.14.2] Tests failing because instantiated fixtures are off by default
Lately I''ve noticed a lot of unit test failures after upgrading to rails 0.14.2. After a bit of tinkering I noticed that the test_helper.rb file has the use_instantiated_fixtures set to false. If I am not mistaken, in previous versions they were on by default. If your tests use these, they might suddenly start failing on new rails apps. The solution is obvious, just turn them back on. I encountered this specifically while using the salted login generator. _Kevin
David Heinemeier Hansson
2005-Oct-28 15:57 UTC
Re: [Rails 0.14.2] Tests failing because instantiated fixtures are off by default
> After a bit of tinkering I noticed that the test_helper.rb file has the > use_instantiated_fixtures set to false. If I am not mistaken, in previous > versions they were on by default.See http://www.clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting for the full story. -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework