Class: ExpectsChain::Expectation
- Defined in:
- lib/expects_chain/expectation.rb
Instance Method Summary collapse
-
#initialize(type, object, *args) ⇒ Expectation
constructor
A new instance of Expectation.
- #returns(value) ⇒ Object
Constructor Details
#initialize(type, object, *args) ⇒ Expectation
Returns a new instance of Expectation.
3 4 5 6 7 |
# File 'lib/expects_chain/expectation.rb', line 3 def initialize type, object, *args @type = type @object = object @expectations = args end |
Instance Method Details
#returns(value) ⇒ Object
9 10 11 12 |
# File 'lib/expects_chain/expectation.rb', line 9 def returns value set_up_call_chain value value end |