Exception: Cucumber::CucumberExpressions::OptionalMayNotBeEmpty
- Inherits:
-
CucumberExpressionError
- Object
- StandardError
- CucumberExpressionError
- Cucumber::CucumberExpressions::OptionalMayNotBeEmpty
- Defined in:
- lib/cucumber/cucumber_expressions/errors.rb
Instance Method Summary collapse
-
#initialize(node, expression) ⇒ OptionalMayNotBeEmpty
constructor
A new instance of OptionalMayNotBeEmpty.
Methods inherited from CucumberExpressionError
#build_message, #point_at, #point_at_located
Constructor Details
#initialize(node, expression) ⇒ OptionalMayNotBeEmpty
Returns a new instance of OptionalMayNotBeEmpty.
79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/cucumber/cucumber_expressions/errors.rb', line 79 def initialize(node, expression) super( ( node.start, expression, point_at_located(node), 'An optional must contain some text', "If you did not mean to use an optional you can use '\\(' to escape the '('" ) ) end |