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.
40 41 42 43 44 45 |
# File 'lib/cucumber/step_mother.rb', line 40 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 |