From: Peter Havens Date: 2007-04-17T07:25:05+09:00 Subject: Verifying that RSpec mock object methods are called with a block. In RSpec, is there a way to verify that a mock object method was called with a block? For example, something like this: context "A mock object method" do specify "should verify that it was called with a block" do m = mock( "mock object" ) m.should_receive( :test_method ).with( :block ) m.test_method { :test_result } end end Thanks, Pete