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

making sure the create_fixtures method works to prevent regressions

This commit is contained in:
Aaron Patterson 2011-04-29 18:21:07 -07:00
parent 2987115656
commit 7ee5f2eee5

View file

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