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.
43 44 45 46 47 48 |
# File 'lib/cucumber/step_mother.rb', line 43 def initialize(step_def_1, step_def_2) = "Multiple step definitions have the same Regexp:\n\n" << step_def_1.backtrace_line << "\n" << step_def_2.backtrace_line << "\n\n" super() end |