提交 1992c75c 编写于 作者: J Juanito Fatas

Remove unused variable in activerecord reflection_test.

上级 3aa96b3b
......@@ -282,7 +282,7 @@ def test_scope_chain_of_polymorphic_association_does_not_leak_into_other_hmt_ass
hotel = Hotel.create!
department = hotel.departments.create!
drink = department.chefs.create!(employable: DrinkDesigner.create!)
recipe = Recipe.create!(chef_id: drink.id, hotel_id: hotel.id)
Recipe.create!(chef_id: drink.id, hotel_id: hotel.id)
hotel.drink_designers.to_a
assert_sql(/^(?!.*employable_type).*$/) { hotel.recipes.to_a }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册