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

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/cucumber-1.3.18/spec/cucumber/wire_support/wire_step_definition_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/cucumber-1.3.16/spec/cucumber/wire_support/wire_step_definition_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/cucumber-1.3.18/spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.20 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.19 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.18 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.17 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.16 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.15 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.14 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.13 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.12 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.11 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.10 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.9 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.8 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.7 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.6 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.5 spec/cucumber/wire_support/wire_step_definition_spec.rb
cucumber-1.3.4 spec/cucumber/wire_support/wire_step_definition_spec.rb