Permalink
Browse files

stop using deprecated api in the tests

  • Loading branch information...
tenderlove committed Sep 9, 2013
1 parent 1385ae1 commit e1cbd4254609ffc2cc9472ce2e7eb46b0dc7bc62
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/fixtures_test.rb
@@ -78,7 +78,7 @@ def test_multiple_clean_fixtures
end
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 fixtures.detect { |f| f.name == 'collections' }, "no fixtures named 'collections' in #{fixtures.map(&:name).inspect}"

0 comments on commit e1cbd42

Please sign in to comment.