class Cucumber::Wire::Connections
Attributes
Public Class Methods
Source
# File lib/cucumber/wire/connections.rb, line 20 def initialize(connections, configuration, registry) raise ArgumentError unless connections @connections = connections @configuration = configuration @registry = registry end
Public Instance Methods
Source
# File lib/cucumber/wire/connections.rb, line 40 def begin_scenario(test_case) connections.each { |c| c.begin_scenario(test_case) } end
Source
# File lib/cucumber/wire/connections.rb, line 44 def end_scenario(test_case) connections.each { |c| c.end_scenario(test_case) } end
Source
# File lib/cucumber/wire/connections.rb, line 28 def find_match(test_step) matches = step_matches(test_step.name) return unless matches.any? # TODO: handle ambiguous matches (push to cucumber?) matches.first end
Source
# File lib/cucumber/wire/connections.rb, line 48 def snippets(code_keyword, step_name, multiline_arg_class_name) connections.map { |c| c.snippet_text(code_keyword, step_name, multiline_arg_class_name) }.flatten end
Source
# File lib/cucumber/wire/connections.rb, line 36 def step_matches(step_name) connections.map { |c| c.step_matches(step_name, @registry) }.flatten end