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

squelch an unused variable warning

This commit is contained in:
Aaron Patterson 2013-03-22 19:41:13 -07:00
parent a03ab8cef8
commit db3a6e6a7f

View file

@ -117,6 +117,7 @@ class CounterCacheTest < ActiveRecord::TestCase
test "update other counters on parent destroy" do
david, joanna = dog_lovers(:david, :joanna)
joanna = joanna # squelch a warning
assert_difference 'joanna.reload.dogs_count', -1 do
david.destroy