Class: Mock::Block
Instance Method Summary collapse
-
#call ⇒ Object
the call method must be provided by in specs E.g.
- #to_proc ⇒ Object
Instance Method Details
#call ⇒ Object
the call method must be provided by in specs E.g. using ‘expect(mock_block_instance).to receive(:call)` to assert that the “block” gets called
11 12 13 |
# File 'lib/riveter/spec_helper.rb', line 11 def call raise NotImplementedError, "Expecting `call` method to have an expectation defined to assert." end |
#to_proc ⇒ Object
5 6 7 |
# File 'lib/riveter/spec_helper.rb', line 5 def to_proc lambda { |*args| call(*args) } end |