Exception: Cucumber::Ambiguous
- Defined in:
- lib/cucumber/step_mother.rb
Overview
Raised when a step matches 2 or more StepDefinitions
Instance Method Summary collapse
-
#initialize(step_name, step_definitions, used_guess) ⇒ Ambiguous
constructor
A new instance of Ambiguous.
Constructor Details
#initialize(step_name, step_definitions, used_guess) ⇒ Ambiguous
Returns a new instance of Ambiguous.
32 33 34 35 36 37 38 |
# File 'lib/cucumber/step_mother.rb', line 32 def initialize(step_name, step_definitions, used_guess) = "Ambiguous match of \"#{step_name}\":\n\n" << step_definitions.map{|sd| sd.backtrace_line}.join("\n") << "\n\n" << "You can run again with --guess to make Cucumber be more smart about it\n" unless used_guess super() end |