1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove unused variable in activerecord reflection_test.

This commit is contained in:
Juanito Fatas 2015-03-17 10:48:36 +08:00
parent 3aa96b3b58
commit 1992c75cea

View file

@ -282,7 +282,7 @@ class ReflectionTest < ActiveRecord::TestCase
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 }