Sha256: ac585fec5ba79516c1a23af299ebc66c5d586237663abb3e9e48ccc912f0ca65

Contents?: true

Size: 841 Bytes

Versions: 2

Compression:

Stored size: 841 Bytes

Contents

# frozen_string_literal: true

require "parameterized_testing"

require_relative "spec/version"
require_relative "spec/driver"

module ParameterizedTesting
  module Minitest
    module Spec
      # Error raised when the format of the parameterized test input is incorrect.
      class InvalidInputFormatError < Exception # rubocop:disable Lint/InheritException
        # @return [Input]
        attr_reader :input
        # @return [Signature]
        attr_reader :signature

        def initialize(message = nil, input:, signature:)
          @input = input
          @signature = signature
          super(message)
        end
      end

      # Error raised when the input block is called outside of the parameterized test.
      class InvalidInputCallError < Exception # rubocop:disable Lint/InheritException
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
parameterized_testing-minitest-spec-1.0.0 lib/parameterized_testing/minitest/spec.rb
parameterized_testing-minitest-spec-0.3.0 lib/parameterized_testing/minitest/spec.rb