mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #4687 from lest/patch-2
fix fixtures test as table_name is a string now
This commit is contained in:
commit
c00d77fe8b
1 changed files with 2 additions and 2 deletions
|
@ -782,7 +782,7 @@ class CustomNameForFixtureOrModelTest < ActiveRecord::TestCase
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue