[rspec-users] Verifying that a block calls a method

Scott Taylor mailing_lists at railsnewbie.com
Tue Apr 17 11:36:13 EDT 2007

I have something like the following:

def my_fun
   my_fun2 do
	raise Error

I know that I can verify that the method receives my_fun2.  How can I  
mock/stub out the example to verify that it calls raise Error?


More information about the rspec-users mailing list