Exception: Betamax::Errors::MethodMismatch

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

Instance Method Summary collapse

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