Exception: Cucumber::Redundant

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cucumber/step_mother.rb

Overview

Raised when 2 or more StepDefinition have the same Regexp

Instance Method Summary collapse

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)
  message = "Multiple step definitions have the same Regexp:\n\n"
  message << step_def_1.backtrace_line << "\n"
  message << step_def_2.backtrace_line << "\n\n"
  super(message)
end