Exception: Rspec::PendingFor::EngineOrVersionsRequired

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/rspec/pending_for/engine_or_versions_required.rb

Overview

Error class raised when pending_for is used but no engine or version is specified.

Instance Method Summary collapse

Constructor Details

#initialize(method_name, *args) ⇒ EngineOrVersionsRequired

Returns a new instance of EngineOrVersionsRequired.



7
8
9
10
# File 'lib/rspec/pending_for/engine_or_versions_required.rb', line 7

def initialize(method_name, *args)
  message = "#{method_name} requires at least an engine or versions to be specified"
  super(message, *args)
end