mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix fixtures test as table_name is a string now
This commit is contained in:
parent
c6efa0d1c7
commit
6e46b3bc27
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