Skip to content

Commit

Permalink
Remove unused line.
Browse files Browse the repository at this point in the history
This was causing a ruby warning:

rspec-mocks/spec/rspec/mocks/matchers/receive_message_chain_spec.rb:130: warning: assigned but unused variable - o
  • Loading branch information
myronmarston committed Nov 20, 2013
1 parent aaf1933 commit fb1d450
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spec/rspec/mocks/matchers/receive_message_chain_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ module RSpec::Mocks::Matchers
end

it "fails when with expect_any_instance_of is used and the entire chain is not called" do
o = Object.new

expect {
expect_any_instance_of(Object).to receive_message_chain(:to_a, :length => 3)
verify_all
Expand Down

0 comments on commit fb1d450

Please sign in to comment.