Re: [rspec-users] [RSpec] Error when returning multiple values from a stub

2009-01-28 Thread Nick Hoffman
On 27/01/2009, at 11:03 AM, Nick Hoffman wrote: Hey guys. I've just found some odd behaviour within RSpec 1.1.12 , and would like to know whether this is a bug, or I'm doing something wrong. When I give multiple return values to a stub, like this: SubtitleFile.stub!(:new).and_return @sf1, @

Re: [rspec-users] [RSpec] Error when returning multiple values from a stub

2009-01-27 Thread Nick Hoffman
On 27/01/2009, at 11:03 AM, Nick Hoffman wrote: Hey guys. I've just found some odd behaviour within RSpec 1.1.12 , and would like to know whether this is a bug, or I'm doing something wrong. When I give multiple return values to a stub, like this: SubtitleFile.stub!(:new).and_return @sf1, @

[rspec-users] [RSpec] Error when returning multiple values from a stub

2009-01-27 Thread Nick Hoffman
Hey guys. I've just found some odd behaviour within RSpec 1.1.12 , and would like to know whether this is a bug, or I'm doing something wrong. When I give multiple return values to a stub, like this: SubtitleFile.stub!(:new).and_return @sf1, @sf2 RSpec complains: Mock 'SubtitleFile_1001' re