[rspec-devel] [ rspec-Feature Requests-8216 ] shortcut for creating object stub

noreply at rubyforge.org noreply at rubyforge.org
Sat Jan 27 10:50:29 EST 2007


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

Category: runner module
Group: None
>Status: Closed
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
Assigned to: David Chelimsky (dchelimsky)
Summary: shortcut for creating object stub

Initial Comment:
I'd like to easily set up a mock w/ multiple pre-defined method stubs:

thing_stub = stub("thing", :a => "A", :b => "B")
thing_stub.a == "A"
=> true
thing_stub.b == "B"
=> true




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

>Comment By: David Chelimsky (dchelimsky)
Date: 2007-01-27 15:50

Message:
Added to trunk (rev 1439).

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

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


More information about the rspec-devel mailing list