Exception: Betamax::Errors::KeywordArgumentMismatch

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

Instance Method Summary collapse

Constructor Details

#initialize(method_name, expected_key:, expected_value:, actual_key:, actual_value:) ⇒ KeywordArgumentMismatch

Returns a new instance of KeywordArgumentMismatch.



45
46
47
48
49
# File 'lib/betamax/errors.rb', line 45

def initialize method_name, expected_key:, expected_value:, actual_key:, actual_value:
  super "Method #{method_name} keyword argument mismatch: " \
        "expected #{expected_key}: #{expected_value.inspect}, " \
        "got #{actual_key}: #{actual_value.inspect}"
end