Skip to content

Commit

Permalink
squelch an unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Mar 23, 2013
1 parent a03ab8c commit db3a6e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions activerecord/test/cases/counter_cache_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class ::SpecialReply < ::Reply

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
Expand Down

0 comments on commit db3a6e6

Please sign in to comment.