Exception: Betamax::Errors::UnexpectedBlock
- Inherits:
-
PlaybackError
- Object
- StandardError
- Error
- PlaybackError
- Betamax::Errors::UnexpectedBlock
- Defined in:
- lib/betamax/errors.rb
Instance Method Summary collapse
-
#initialize(method_name) ⇒ UnexpectedBlock
constructor
A new instance of UnexpectedBlock.
Constructor Details
#initialize(method_name) ⇒ UnexpectedBlock
Returns a new instance of UnexpectedBlock.
26 27 28 |
# File 'lib/betamax/errors.rb', line 26 def initialize method_name super "Method #{method_name} was called with a block but was recorded without one" end |