diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-29 18:21:07 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-29 18:21:24 -0700 |
commit | 7ee5f2eee514f5e9fb53753b830e0caf3dafc2aa (patch) | |
tree | 5a7978e5ada28d56e20d07367458d0af6338dba4 /activerecord | |
parent | 2987115656dd3590e7034271aade26dc006cd158 (diff) | |
download | rails-7ee5f2eee514f5e9fb53753b830e0caf3dafc2aa.tar.gz rails-7ee5f2eee514f5e9fb53753b830e0caf3dafc2aa.tar.bz2 rails-7ee5f2eee514f5e9fb53753b830e0caf3dafc2aa.zip |
making sure the `create_fixtures` method works to prevent regressions
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/fixtures_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/fixtures_test.rb b/activerecord/test/cases/fixtures_test.rb index fa40fad56d..3e20155210 100644 --- a/activerecord/test/cases/fixtures_test.rb +++ b/activerecord/test/cases/fixtures_test.rb @@ -45,6 +45,11 @@ class FixturesTest < ActiveRecord::TestCase end end + def test_create_fixtures + Fixtures.create_fixtures(FIXTURES_ROOT, "parrots") + assert Parrot.find_by_name('Curious George'), 'George is in the database' + end + def test_multiple_clean_fixtures fixtures_array = nil assert_nothing_raised { fixtures_array = create_fixtures(*FIXTURES) } |