class Cucumber::Wire::Protocol::Requests::Invoke
Public Instance Methods
execute(step_definition_id, args)
click to toggle source
Calls superclass method
# File lib/cucumber/wire/protocol/requests.rb, line 58 def execute(step_definition_id, args) request_params = { :id => step_definition_id, :args => args } super(request_params) end
handle_diff(tables)
click to toggle source
# File lib/cucumber/wire/protocol/requests.rb, line 78 def handle_diff(tables) begin handle_diff!(tables) rescue Cucumber::MultilineArgument::DataTable::Different @connection.diff_failed end @connection.diff_ok end
handle_diff!(tables)
click to toggle source
# File lib/cucumber/wire/protocol/requests.rb, line 70 def handle_diff!(tables) # TODO: figure out if / how we could get a location for a table from the wire (or make a null location) location = Core::Ast::Location.new(__FILE__, __LINE__) table1 = table(tables[0], location) table2 = table(tables[1], location) table1.diff!(table2) end
handle_pending(message)
click to toggle source
# File lib/cucumber/wire/protocol/requests.rb, line 66 def handle_pending(message) raise Pending, message || "TODO" end
Private Instance Methods
table(data, location)
click to toggle source
# File lib/cucumber/wire/protocol/requests.rb, line 91 def table(data, location) Cucumber::MultilineArgument.from_core(Core::Ast::DataTable.new(data, location)) end