[rspec-devel] [ rspec-Bugs-6971 ] and_yield does not work when the arity is -1

noreply at rubyforge.org noreply at rubyforge.org
Wed Nov 29 18:06:21 EST 2006


Bugs item #6971, was opened at 2006-11-29 15:06
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=6971&group_id=797

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Brian Takita (btakita)
Assigned to: Nobody (None)
Summary: and_yield does not work when the arity is -1

Initial Comment:
def foo(bar)
  bar.call {|*args|}
end

bar = mock("bar)
bar.should_receive(:call).and_yield
foo(bar)  # Mock 'bar' yielded || to block with arity of -1

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=6971&group_id=797


More information about the rspec-devel mailing list