Exception: Cucumber::StepMother::Ambiguous
- Defined in:
- lib/cucumber/step_mother.rb
Overview
Raised when a step matches 2 or more StepDefinition
Instance Method Summary collapse
-
#initialize(step_name, step_definitions) ⇒ Ambiguous
constructor
A new instance of Ambiguous.
Constructor Details
#initialize(step_name, step_definitions) ⇒ Ambiguous
Returns a new instance of Ambiguous.
28 29 30 31 32 33 |
# File 'lib/cucumber/step_mother.rb', line 28 def initialize(step_name, step_definitions) = "Ambiguous match of \"#{step_name}\":\n\n" << step_definitions.map{|sd| sd.to_backtrace_line}.join("\n") << "\n\n" super() end |