Exception: Betamax::Errors::KeywordArgumentMismatch
- Inherits:
-
PlaybackError
- Object
- StandardError
- Error
- PlaybackError
- Betamax::Errors::KeywordArgumentMismatch
- Defined in:
- lib/betamax/errors.rb
Instance Method Summary collapse
-
#initialize(method_name, expected_key:, expected_value:, actual_key:, actual_value:) ⇒ KeywordArgumentMismatch
constructor
A new instance of KeywordArgumentMismatch.
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 |