Skip to content

Commit

Permalink
Remove extra once.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Jun 18, 2014
1 parent 90e61de commit 37baf4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/rspec/mocks/double_spec.rb
Expand Up @@ -591,9 +591,9 @@ def initialize(amount, units)
end

it "fails when calling yielding method consecutively with wrong arity" do
expect(@double).to receive(:yield_back).once.with(no_args()).once.and_yield('wha', 'zup').
and_yield('down').
and_yield(14, 65)
expect(@double).to receive(:yield_back).once.with(no_args()).and_yield('wha', 'zup').
and_yield('down').
and_yield(14, 65)
expect {
c = []
@double.yield_back {|a,b| c << [a, b]}
Expand Down

0 comments on commit 37baf4a

Please sign in to comment.