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

Merge pull request #19368 from JuanitoFatas/fix/unused-var-in-test

Remove unused variable in activerecord reflection_test.
This commit is contained in:
Arthur Nogueira Neves 2015-03-16 23:07:22 -04:00
commit f244a12cc6

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 }