Method: Object#returns
- Defined in:
- lib/caricature/core_ext/object.rb
#returns(value = nil, &b) ⇒ Object
tell the expectation it needs to return this value or the value returned by the block you provide to this method.
49 50 51 52 |
# File 'lib/caricature/core_ext/object.rb', line 49 def returns(value=nil, &b) @expectation.return(value, &b) self end |