Class: Cucumber::Filters::ActivateSteps::CaseFilter::FindMatch
- Defined in:
- lib/cucumber/filters/activate_steps.rb
Instance Method Summary collapse
-
#initialize(step_match_search, configuration, test_step) ⇒ FindMatch
constructor
A new instance of FindMatch.
- #result ⇒ Object
Constructor Details
#initialize(step_match_search, configuration, test_step) ⇒ FindMatch
Returns a new instance of FindMatch.
40 41 42 |
# File 'lib/cucumber/filters/activate_steps.rb', line 40 def initialize(step_match_search, configuration, test_step) @step_match_search, @configuration, @test_step = step_match_search, configuration, test_step end |
Instance Method Details
#result ⇒ Object
44 45 46 47 48 49 |
# File 'lib/cucumber/filters/activate_steps.rb', line 44 def result return NoStepMatch.new(test_step.source.last, test_step.name) unless matches.any? configuration.notify Events::StepMatch.new(test_step, match) return SkippingStepMatch.new if configuration.dry_run? match end |