class Cucumber::Filters::ActivateSteps::CaseFilter::FindMatch
Attributes
Public Class Methods
Source
# File lib/cucumber/filters/activate_steps.rb, line 41 def initialize(step_match_search, configuration, test_step) @step_match_search = step_match_search @configuration = configuration @test_step = test_step end
Public Instance Methods
Source
# File lib/cucumber/filters/activate_steps.rb, line 47 def result begin return NoStepMatch.new(test_step, test_step.text) unless matches.any? rescue Cucumber::Ambiguous => e return AmbiguousStepMatch.new(e) end configuration.notify :step_activated, test_step, match return SkippingStepMatch.new if configuration.dry_run? match end
Private Instance Methods
Source
# File lib/cucumber/filters/activate_steps.rb, line 67 def matches step_match_search.call(test_step.text) end