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:
parent
a03ab8cef8
commit
db3a6e6a7f
1 changed files with 1 additions and 0 deletions
|
@ -117,6 +117,7 @@ class CounterCacheTest < ActiveRecord::TestCase
|
||||||
|
|
||||||
test "update other counters on parent destroy" do
|
test "update other counters on parent destroy" do
|
||||||
david, joanna = dog_lovers(:david, :joanna)
|
david, joanna = dog_lovers(:david, :joanna)
|
||||||
|
joanna = joanna # squelch a warning
|
||||||
|
|
||||||
assert_difference 'joanna.reload.dogs_count', -1 do
|
assert_difference 'joanna.reload.dogs_count', -1 do
|
||||||
david.destroy
|
david.destroy
|
||||||
|
|
Loading…
Reference in a new issue