class Cucumber::Undefined
Raised when there is no matching StepDefinition for a step.
Public Class Methods
Source
# File lib/cucumber/errors.rb, line 8 def self.from(result, step_name) return result.with_message(with_prefix(result.message)) if result.is_a?(self) begin raise new(with_prefix(step_name)) # rubocop:disable Style/RaiseArgs rescue StandardError => e e end end
Source
# File lib/cucumber/errors.rb, line 18 def self.with_prefix(step_name) %(Undefined step: "#{step_name}") end