class Cucumber::Runtime::SupportCode
Public Instance Methods
step_match_with_priority(*args)
click to toggle source
Cucumber
2.1 or lower has a single method step_match which returns a single Cucumber::StepMatch. This method raises Cucumber::Ambigiuous if there are two or more matches.
# File lib/cucumber_priority/resolve_ambiguous_error.rb, line 91 def step_match_with_priority(*args) step_match_without_priority(*args) rescue Ambiguous => e CucumberPriority::Resolver.resolve_ambiguity_through_priority(e) end
step_matches(*args)
click to toggle source
This method doesn't exist in old Cucumbers. We define it so our specs have a unified API to match steps.
# File lib/cucumber_priority/resolve_ambiguous_error.rb, line 101 def step_matches(*args) [step_match(*args)] end
step_matches_with_priority(*args)
click to toggle source
# File lib/cucumber_priority/resolve_ambiguous_error.rb, line 56 def step_matches_with_priority(*args) step_matches_without_priority(*args) rescue Ambiguous => e [CucumberPriority::Resolver.resolve_ambiguity_through_priority(e)] end