Skip to content

Commit

Permalink
Fix a use of stub that was missed by transpec.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Feb 27, 2014
1 parent e4800a3 commit 6cb45ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rspec/mocks/block_return_value_spec.rb
Expand Up @@ -27,7 +27,7 @@
it 'forwards all given args to the block, even when it receives a block' do
obj = Object.new
yielded_args = []
eval("obj.stub(:foo) { |*args, &bl| yielded_args << args }")
allow(obj).to receive(:foo) { |*args, &bl| yielded_args << args }
obj.foo(1, 2, 3)

expect(yielded_args).to eq([[1, 2, 3]])
Expand Down

0 comments on commit 6cb45ce

Please sign in to comment.