Exception: Minitest::Keyword::MissingRequiredArgumentError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/minitest/keyword.rb

Overview

Raised if a parameter is required but none was provided as either a regular argument or a keyword argument

Instance Method Summary collapse

Constructor Details

#initialize(method_name, argument_name) ⇒ MissingRequiredArgumentError

Returns a new instance of MissingRequiredArgumentError.



40
41
42
43
44
45
# File 'lib/minitest/keyword.rb', line 40

def initialize(method_name, argument_name)
  super(
    "You must specify a value for the #{argument_name} argument " \
      "for the #{method_name} assertion"
  )
end