class Cucumber::Ambiguous
Raised when a step matches 2 or more StepDefinitions
Public Class Methods
new(step_name, step_definitions, used_guess)
click to toggle source
Calls superclass method
# File lib/cucumber/errors.rb, line 36 def initialize(step_name, step_definitions, used_guess) message = String.new # rubocop:disable Style/EmptyLiteral message << "Ambiguous match of \"#{step_name}\":\n\n" message << step_definitions.map(&:backtrace_line).join("\n") message << "\n\n" message << "You can run again with --guess to make Cucumber be more smart about it\n" unless used_guess super(message) end