Module: Cucumber::Wire::Protocol

Included in:
Connection
Defined in:
lib/cucumber/wire/protocol.rb,
lib/cucumber/wire/protocol/requests.rb

Defined Under Namespace

Modules: Requests

Instance Method Summary collapse

Instance Method Details

#begin_scenario(scenario) ⇒ Object



33
34
35
36
# File 'lib/cucumber/wire/protocol.rb', line 33

def begin_scenario(scenario)
  handler = Requests::BeginScenario.new(self)
  handler.execute(scenario)
end

#diff_failedObject



23
24
25
26
# File 'lib/cucumber/wire/protocol.rb', line 23

def diff_failed
  handler = Requests::DiffFailed.new(self)
  handler.execute
end

#diff_okObject



28
29
30
31
# File 'lib/cucumber/wire/protocol.rb', line 28

def diff_ok
  handler = Requests::DiffOk.new(self)
  handler.execute
end

#end_scenario(scenario) ⇒ Object



38
39
40
41
# File 'lib/cucumber/wire/protocol.rb', line 38

def end_scenario(scenario)
  handler = Requests::EndScenario.new(self)
  handler.execute(scenario)
end

#invoke(step_definition_id, args) ⇒ Object



18
19
20
21
# File 'lib/cucumber/wire/protocol.rb', line 18

def invoke(step_definition_id, args)
  handler = Requests::Invoke.new(self)
  handler.execute(step_definition_id, args)
end

#snippet_text(step_keyword, step_name, multiline_arg_class_name) ⇒ Object



13
14
15
16
# File 'lib/cucumber/wire/protocol.rb', line 13

def snippet_text(step_keyword, step_name, multiline_arg_class_name)
  handler = Requests::SnippetText.new(self)
  handler.execute(step_keyword, step_name, multiline_arg_class_name)
end

#step_matches(name_to_match, registry) ⇒ Object



8
9
10
11
# File 'lib/cucumber/wire/protocol.rb', line 8

def step_matches(name_to_match, registry)
  handler = Requests::StepMatches.new(self, registry)
  handler.execute(name_to_match)
end