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:
parent
2987115656
commit
7ee5f2eee5
1 changed files with 5 additions and 0 deletions
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue