mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
make @bitsweat happy. ❤️
This commit is contained in:
parent
e1cbd42546
commit
7a30bb112f
1 changed files with 6 additions and 0 deletions
|
@ -84,6 +84,12 @@ class FixturesTest < ActiveRecord::TestCase
|
|||
assert fixtures.detect { |f| f.name == 'collections' }, "no fixtures named 'collections' in #{fixtures.map(&:name).inspect}"
|
||||
end
|
||||
|
||||
def test_create_symbol_fixtures_is_deprecated
|
||||
assert_deprecated do
|
||||
ActiveRecord::FixtureSet.create_fixtures(FIXTURES_ROOT, :collections, :collections => 'Course') { Course.connection }
|
||||
end
|
||||
end
|
||||
|
||||
def test_attributes
|
||||
topics = create_fixtures("topics").first
|
||||
assert_equal("The First Topic", topics["first"]["title"])
|
||||
|
|
Loading…
Reference in a new issue