mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
stop using deprecated api in the tests
This commit is contained in:
parent
1385ae138d
commit
e1cbd42546
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class FixturesTest < ActiveRecord::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_create_symbol_fixtures
|
def test_create_symbol_fixtures
|
||||||
fixtures = ActiveRecord::FixtureSet.create_fixtures(FIXTURES_ROOT, :collections, :collections => 'Course') { Course.connection }
|
fixtures = ActiveRecord::FixtureSet.create_fixtures(FIXTURES_ROOT, :collections, :collections => Course) { Course.connection }
|
||||||
|
|
||||||
assert Course.find_by_name('Collection'), 'course is not in the database'
|
assert Course.find_by_name('Collection'), 'course is not in the database'
|
||||||
assert fixtures.detect { |f| f.name == 'collections' }, "no fixtures named 'collections' in #{fixtures.map(&:name).inspect}"
|
assert fixtures.detect { |f| f.name == 'collections' }, "no fixtures named 'collections' in #{fixtures.map(&:name).inspect}"
|
||||||
|
|
Loading…
Reference in a new issue