Exception: Rspec::PendingFor::EngineOrVersionsRequired — Documentation by YARD 0.9.44

# Exception: Rspec::PendingFor::EngineOrVersionsRequired

Inherits:
  ArgumentError
  - Object
  - ArgumentError
  - Rspec::PendingFor::EngineOrVersionsRequired
  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

- #initialize(method_name, *args) ⇒ EngineOrVersionsRequired constructor

  A new instance of EngineOrVersionsRequired.

## 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