Exception: Minitest::Keyword::MissingRequiredArgumentError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Minitest::Keyword::MissingRequiredArgumentError
- 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
-
#initialize(method_name, argument_name) ⇒ MissingRequiredArgumentError
constructor
A new instance of MissingRequiredArgumentError.
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 |