提交 8c1762f1 编写于 作者: X Xavier Noria

Merge pull request #1550 from rsim/fix_test_has_many_with_pluralize_table_names_false

Do not hardcode :id as it was ignored by mass assignment filter
......@@ -722,8 +722,8 @@ def test_has_many_through_goes_through_all_sti_classes
end
def test_has_many_with_pluralize_table_names_false
engine = Engine.create!(:car_id => 1)
aircraft = Aircraft.create!(:name => "Airbus 380", :id => 1)
aircraft = Aircraft.create!(:name => "Airbus 380")
engine = Engine.create!(:car_id => aircraft.id)
assert_equal aircraft.engines, [engine]
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册