search for: subtitlefile_1001

Displaying 1 result from an estimated 1 matches for "subtitlefile_1001".

2009 Jan 27
2
[RSpec] Error when returning multiple values from a stub
...ys. 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'' received unexpected message :size with (no args) However, if I break that into two stubs, like this: SubtitleFile.stub!(:new).and_return @sf1 SubtitleFile.stub!(:new).and_return @sf2 the spec passes. I''ve posted a more concrete example here: http://gist.github.com/53389...