Class: Cucumber::WireSupport::WireProtocol::Requests::StepMatches

Inherits:
RequestHandler show all
Defined in:
lib/cucumber/wire_support/wire_protocol/requests.rb

Instance Method Summary collapse

Methods inherited from RequestHandler

#handle_fail, #initialize

Constructor Details

This class inherits a constructor from Cucumber::WireSupport::RequestHandler

Instance Method Details

#execute(name_to_match, name_to_report) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/cucumber/wire_support/wire_protocol/requests.rb', line 7

def execute(name_to_match, name_to_report)
  @name_to_match, @name_to_report = name_to_match, name_to_report
  request_params = {
    :name_to_match => name_to_match
  }
  super(request_params)
end

#handle_success(params) ⇒ Object Also known as: handle_step_matches



15
16
17
18
19
# File 'lib/cucumber/wire_support/wire_protocol/requests.rb', line 15

def handle_success(params)
  params.map do |raw_step_match|
    create_step_match(raw_step_match)
  end
end