Exception: Betamax::Errors::ArgumentMismatch

Inherits:
PlaybackError show all
Defined in:
lib/betamax/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(method_name, expected:, actual:) ⇒ ArgumentMismatch

Returns a new instance of ArgumentMismatch.



38
39
40
41
# File 'lib/betamax/errors.rb', line 38

def initialize method_name, expected:, actual:
  super "Method #{method_name} argument mismatch: " \
        "expected #{expected.inspect}, got #{actual.inspect}"
end