class Attestify::Mock::UnexpectedCall

A method call that wasn't expected.

Public Class Methods

new(name, args, block) click to toggle source
Calls superclass method Attestify::Mock::CallExpectation::new
# File lib/attestify/mock.rb, line 109
def initialize(name, args, block)
  super(name, nil, args, block)
end

Public Instance Methods

call(args, block) click to toggle source
Calls superclass method Attestify::Mock::CallExpectation#call
# File lib/attestify/mock.rb, line 113
def call(args, block)
  @caller_locations = caller_locations(2)
  super
end
verify(assertions) click to toggle source
# File lib/attestify/mock.rb, line 118
def verify(assertions)
  assertions.record(false, "Unexpected call to mock: #{to_s(:actual)}", @caller_locations)
end