Class: Cucumber::AmbiguousStepMatch

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/step_match.rb

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ AmbiguousStepMatch

Returns a new instance of AmbiguousStepMatch



149
150
151
# File 'lib/cucumber/step_match.rb', line 149

def initialize(error)
  @error = error
end

Instance Method Details

#activate(test_step) ⇒ Object



153
154
155
# File 'lib/cucumber/step_match.rb', line 153

def activate(test_step)
  return test_step.with_action { raise @error }
end