Skip to content

Commit

Permalink
Address ruby warning.
Browse files Browse the repository at this point in the history
rspec-mocks/spec/rspec/mocks/and_yield_spec.rb:114: warning: assigned but unused variable - default_arg
  • Loading branch information
myronmarston committed Jun 21, 2014
1 parent 31b0759 commit 725618e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/rspec/mocks/and_yield_spec.rb
Expand Up @@ -112,6 +112,8 @@

it "yields given argument when the argument is given" do
default_arg = Object.new
allow(default_arg).to receive(:bar)

given_arg = Object.new
obj = Object.new

Expand Down

0 comments on commit 725618e

Please sign in to comment.