Method: Cucumber::Ast::StepInvocation#find_step_match!
- Defined in:
- lib/cucumber/ast/step_invocation.rb
#find_step_match!(step_mother) ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/cucumber/ast/step_invocation.rb', line 65 def find_step_match!(step_mother) return if @step_match begin @step_match = step_mother.step_match(@name) rescue Undefined => e failed(step_mother., e, true) status!(:undefined) @step_match = NoStepMatch.new(@step, @name) rescue Ambiguous => e failed(step_mother., e, false) status!(:failed) @step_match = NoStepMatch.new(@step, @name) end step_mother.step_visited(self) end |