Exception: Cucumber::Redundant
- Defined in:
- lib/cucumber/step_mother.rb
Overview
Raised when 2 or more StepDefinition have the same Regexp
Instance Method Summary collapse
-
#initialize(step_def_1, step_def_2) ⇒ Redundant
constructor
A new instance of Redundant.
Constructor Details
#initialize(step_def_1, step_def_2) ⇒ Redundant
Returns a new instance of Redundant.
31 32 33 34 35 36 |
# File 'lib/cucumber/step_mother.rb', line 31 def initialize(step_def_1, step_def_2) = "Multiple step definitions have the same Regexp:\n\n" << step_def_1.to_backtrace_line << "\n" << step_def_2.to_backtrace_line << "\n\n" super() end |