Parent

Methods

Class/Module Index [+]

Quicksearch

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
# File lib/cucumber/step_mother.rb, line 33
def initialize(step_name, step_definitions, used_guess)
  message = "Ambiguous match of \"#{step_name}\":\n\n"
  message << step_definitions.map{|sd| sd.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

[Validate]

Generated with the Darkfish Rdoc Generator 2.