[rspec-devel] [ rspec-Feature Requests-13574 ] cleaner syntax for consecutive return values

noreply at rubyforge.org noreply at rubyforge.org
Mon Nov 19 00:24:25 EST 2007


Feature Requests item #13574, was opened at 2007-09-01 10:03
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=13574&group_id=797

Category: mock module
Group: None
Status: Open
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
Assigned to: Nobody (None)
Summary: cleaner syntax for consecutive return values

Initial Comment:
We just added this to trunk for multiple yields:

@mock.should_receive(:message).once.
  and_yield('wha', 'zup').
  and_yield('not', 'down').
  and_yield(14, 65)

We should do something similar for consecutive returns:

@mock.should_receive(:message).
  and_return('wha', 'zup').
  and_return('not', 'down').
  and_return(14, 65)



----------------------------------------------------------------------

Comment By: Chad Humphries (spicycode)
Date: 2007-11-19 00:24

Message:
Moved to http://rspec.lighthouseapp.com/projects/5645-rspec/tickets/114-13574-cleaner-syntax-for-consecutive-return-values

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3152&aid=13574&group_id=797


More information about the rspec-devel mailing list