Class: Cucumber::Filters::ActivateSteps::CaseFilter::FindMatch
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/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.
41 42 43 44 45 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/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 |
Instance Method Details
#result ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/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 |