class Mock::Block

Public Instance Methods

call() click to toggle source

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

# 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() click to toggle source
# File lib/riveter/spec_helper.rb, line 5
def to_proc
  lambda { |*args| call(*args) }
end