Sha256: 614fdc507eae88671e2846b604b84f42042115385bd07d7d440af7fcf185cc18

Contents?: true

Size: 394 Bytes

Versions: 3

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

module Rspec
  module PendingFor
    # Error class raised when pending_for is used but no engine or version is specified.
    class EngineOrVersionsRequired < ArgumentError
      def initialize(method_name, *args)
        message = "#{method_name} requires at least an engine or versions to be specified"
        super(message, *args)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspec-pending_for-0.1.16 lib/rspec/pending_for/engine_or_versions_required.rb
rspec-pending_for-0.1.15 lib/rspec/pending_for/engine_or_versions_required.rb
rspec-pending_for-0.1.14 lib/rspec/pending_for/engine_or_versions_required.rb