class Cucumber::Undefined
Raised when there is no matching StepDefinition for a step.
Public Class Methods
from(result, step_name)
click to toggle source
# File lib/cucumber/errors.rb, line 6 def self.from(result, step_name) if result.is_a?(self) return result.with_message(with_prefix(result.message)) end begin raise self.new(with_prefix(step_name)) rescue => exception return exception end end
with_prefix(step_name)
click to toggle source
# File lib/cucumber/errors.rb, line 18 def self.with_prefix(step_name) %Q(Undefined step: "#{step_name}") end