P
Peter Havens
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
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