Exception: Betamax::Errors::UnusedRecordings

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

Instance Method Summary collapse

Constructor Details

#initialize(unused_methods) ⇒ UnusedRecordings

Returns a new instance of UnusedRecordings.



53
54
55
56
# File 'lib/betamax/errors.rb', line 53

def initialize unused_methods
  method_names = unused_methods.map(&:method_name).join(", ")
  super "Recording has #{unused_methods.size} unused method(s): #{method_names}"
end