lib/lucid/errors.rb in lucid-0.2.1 vs lib/lucid/errors.rb in lucid-0.3.0

- old
+ new

@@ -1,7 +1,7 @@ module Lucid - # Raised when there is no matching StepDefinition for a step. + # Raised when there is no matching test definition for a step. class Undefined < StandardError attr_reader :step_name def initialize(step_name) super %{Undefined step: "#{step_name}"} @@ -15,14 +15,14 @@ def nested? @nested end end - # Raised when a StepDefinition's block invokes Domain#pending + # Raised when a test definition block invokes Domain#pending. class Pending < StandardError end - # Raised when a step matches 2 or more StepDefinitions + # Raised when a step matches two or more test definitions. class Ambiguous < StandardError 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"