Exception: Betamax::Errors::MethodMismatch
- Inherits:
-
PlaybackError
- Object
- StandardError
- Error
- PlaybackError
- Betamax::Errors::MethodMismatch
- Defined in:
- lib/betamax/errors.rb
Instance Method Summary collapse
-
#initialize(expected:, actual:) ⇒ MethodMismatch
constructor
A new instance of MethodMismatch.
Constructor Details
#initialize(expected:, actual:) ⇒ MethodMismatch
Returns a new instance of MethodMismatch.
20 21 22 |
# File 'lib/betamax/errors.rb', line 20 def initialize expected:, actual: super "Expected method #{expected} but received #{actual}" end |