Sha256: ff1a6660b33fdc640cc4fed03a6fd0c13cf7f6a66376bcc6eb2dc28a5dd0c80f
Contents?: true
Size: 745 Bytes
Versions: 38
Compression:
Stored size: 745 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../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 = mock('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
38 entries across 38 versions & 3 rubygems