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:
commit
f244a12cc6
1 changed files with 1 additions and 1 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue