From fdaa98e06ba6d6f8b62480a83e9ecffdbcb21402 Mon Sep 17 00:00:00 2001 From: francis Date: Wed, 23 Jan 2008 01:54:49 +0000 Subject: Upgrade to rspec 1.1.2 --- vendor/plugins/rspec/lib/spec/mocks.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vendor/plugins/rspec/lib/spec/mocks.rb') diff --git a/vendor/plugins/rspec/lib/spec/mocks.rb b/vendor/plugins/rspec/lib/spec/mocks.rb index 66cbafb3c..9f9cd215b 100644 --- a/vendor/plugins/rspec/lib/spec/mocks.rb +++ b/vendor/plugins/rspec/lib/spec/mocks.rb @@ -170,7 +170,9 @@ module Spec # #error can be an instantiated object or a class # #if it is a class, it must be instantiable with no args # my_mock.should_receive(:sym).and_throw(:sym) - # my_mock.should_receive(:sym).and_yield([array,of,values,to,yield]) + # my_mock.should_receive(:sym).and_yield(values,to,yield) + # my_mock.should_receive(:sym).and_yield(values,to,yield).and_yield(some,other,values,this,time) + # # for methods that yield to a block multiple times # # Any of these responses can be applied to a stub as well, but stubs do # not support any qualifiers about the message received (i.e. you can't specify arguments @@ -180,7 +182,8 @@ module Spec # my_mock.stub!(:sym).and_return(value1, value2, value3) # my_mock.stub!(:sym).and_raise(error) # my_mock.stub!(:sym).and_throw(:sym) - # my_mock.stub!(:sym).and_yield([array,of,values,to,yield]) + # my_mock.stub!(:sym).and_yield(values,to,yield) + # my_mock.stub!(:sym).and_yield(values,to,yield).and_yield(some,other,values,this,time) # # == Arbitrary Handling # -- cgit v1.2.3