Displaying 2 results from an estimated 2 matches for "and_return_values".
2006 Dec 18
2
should_receive and multiple return values
...03-01,mi73825,ft42" }
)
end
But it doesn''t because and_return is setting up multiple method
calls, not multiple return values.
I don''t imagine multiple return values are used that often, but they
can be handy. Would there be any use in another method, maybe
and_return_values or something to allow you to specify them? Since
they are possible in Ruby, it makes sense that you should be able to
specify them in RSpec.
I got around it, of course, using an array return and the * expand
operator, but I avoid that when I can
Ashley
2007 Jul 26
5
Coding standards and whitespace
Recently as a result of using Git I''ve noticed a number of
inconsistencies in the RSpec codebase with respect to whitespace
(mixed line endings, mixed use of spaces and tabs for indentation,
and trailing whitespace at the end of lines). I never would have
noticed, but Git produces nice colorized diff output which highlights
these kinds of inconsistencies.
I wanted to ask if the