diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-09-09 14:52:21 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-09-09 14:52:21 -0700 |
commit | 7a30bb112f81eec318d181d4c10f5ced58e4c082 (patch) | |
tree | 071a84e247d7287fe7d0d60fc130b0c60c9bff1d /activerecord/test/cases | |
parent | e1cbd4254609ffc2cc9472ce2e7eb46b0dc7bc62 (diff) | |
download | rails-7a30bb112f81eec318d181d4c10f5ced58e4c082.tar.gz rails-7a30bb112f81eec318d181d4c10f5ced58e4c082.tar.bz2 rails-7a30bb112f81eec318d181d4c10f5ced58e4c082.zip |
make @bitsweat happy. :heart:
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/fixtures_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/fixtures_test.rb b/activerecord/test/cases/fixtures_test.rb index 22eeb5076c..e61deb1080 100644 --- a/activerecord/test/cases/fixtures_test.rb +++ b/activerecord/test/cases/fixtures_test.rb @@ -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"]) |