Sha256: 9327d48625884f731be805873a3d3210407f51f804373f74eb7e6ad3665c754f
Contents?: true
Size: 698 Bytes
Versions: 21
Compression:
Stored size: 698 Bytes
Contents
require 'spec_helper' require 'cucumber/wire_support/wire_language' module Cucumber module WireSupport describe WireStepDefinition, "#invoke" do describe "if one of the arguments is a table" do it "should pass the raw table to the connection" do connection = double('connection') step_definition = WireStepDefinition.new(connection, 'id' => 'the-id') expected_args = ["a","b", [["1","2"],["3","4"]]] connection.should_receive(:invoke).with('the-id', expected_args) args = ["a","b"] args << Cucumber::Ast::Table.new([["1","2"],["3","4"]]) step_definition.invoke(args) end end end end end
Version data entries
21 entries across 19 versions & 2 rubygems