aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2013-09-08 02:58:25 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2013-09-08 03:03:02 -0700
commitbac28d3bbdbe59109ac532935f06c2603ffe0fcd (patch)
tree2ff9488a27a142e1e3c89eb5c2d22e6273e51ff4 /activerecord/test/cases
parentc989a18a74d970be86c537766f14916bd06fe176 (diff)
downloadrails-bac28d3bbdbe59109ac532935f06c2603ffe0fcd.tar.gz
rails-bac28d3bbdbe59109ac532935f06c2603ffe0fcd.tar.bz2
rails-bac28d3bbdbe59109ac532935f06c2603ffe0fcd.zip
Fix fixtures regression that required table names to map to classes only, not class names
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/fixtures_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/fixtures_test.rb b/activerecord/test/cases/fixtures_test.rb
index 22eeb5076c..76516ef92d 100644
--- a/activerecord/test/cases/fixtures_test.rb
+++ b/activerecord/test/cases/fixtures_test.rb
@@ -78,7 +78,7 @@ class FixturesTest < ActiveRecord::TestCase
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}"