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