Skip to content

Commit

Permalink
Merge pull request #4687 from lest/patch-2
Browse files Browse the repository at this point in the history
fix fixtures test as table_name is a string now
  • Loading branch information
josevalim committed Jan 26, 2012
2 parents c6efa0d + 6e46b3b commit c00d77f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/cases/fixtures_test.rb
Expand Up @@ -782,7 +782,7 @@ def test_named_accessor_for_randomly_named_namespaced_fixture_and_class
end

def test_table_name_is_defined_in_the_model
assert_equal :randomly_named_table, ActiveRecord::Fixtures::all_loaded_fixtures["admin/randomly_named_a9"].table_name
assert_equal :randomly_named_table, Admin::ClassNameThatDoesNotFollowCONVENTIONS.table_name
assert_equal 'randomly_named_table', ActiveRecord::Fixtures::all_loaded_fixtures["admin/randomly_named_a9"].table_name
assert_equal 'randomly_named_table', Admin::ClassNameThatDoesNotFollowCONVENTIONS.table_name
end
end

0 comments on commit c00d77f

Please sign in to comment.