diff options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/helpers/test_helper.rb | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index 1f43cce9fc..8411c12b2c 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Added fixtures :all to test_helper.rb to assume that most people just want all their fixtures loaded all the time [DHH] + * Added config/initializers where all ruby files within it are automatically loaded after the Rails configuration is done, so you don't have to litter the environment.rb file with a ton of mixed stuff [DHH] * For new apps, generate a random secret for the cookie-based session store. [Jeremy Kemper] diff --git a/railties/helpers/test_helper.rb b/railties/helpers/test_helper.rb index a299c7f6db..d13753a655 100644 --- a/railties/helpers/test_helper.rb +++ b/railties/helpers/test_helper.rb @@ -24,5 +24,10 @@ class Test::Unit::TestCase # then set this back to true. self.use_instantiated_fixtures = false + # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order. + # If you need to control the loading order (due to foreign key constraints etc), you'll + # need to change this line to explicitly name the order you desire. + fixtures :all + # Add more helper methods to be used by all tests here... -end +end
\ No newline at end of file |