Sha256: 112dc59d51794cfc7668c8bf2e6cd355105b7d78c3d02260210d7c48c8960a8f

Contents?: true

Size: 700 Bytes

Versions: 17

Compression:

Stored size: 700 Bytes

Contents

require 'cucumber/wire/connections'
require 'cucumber/wire/configuration'

module Cucumber
  module Wire
    describe Connections do
      describe "#step_matches" do
        it "returns the matches from each of the RemoteSteps" do
          connection1 = double(step_matches: [:a, :b])
          connection2 = double(step_matches: [:c])

          connections = Connections.new([connection1, connection2], double, double)
          expect(connections.step_matches('')).to eq [:a, :b, :c]
        end

        it "copes with no connections" do
          connections = Connections.new([], double, double)
          expect(connections.step_matches('')).to eq []
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
cucumber-wire-6.2.1 spec/cucumber/wire/connections_spec.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/cucumber-wire-6.2.0/spec/cucumber/wire/connections_spec.rb
cucumber-wire-6.2.0 spec/cucumber/wire/connections_spec.rb
cucumber-wire-6.1.1 spec/cucumber/wire/connections_spec.rb
cucumber-wire-6.1.0 spec/cucumber/wire/connections_spec.rb
cucumber-wire-6.0.1 spec/cucumber/wire/connections_spec.rb
cucumber-wire-6.0.0 spec/cucumber/wire/connections_spec.rb
cucumber-wire-5.0.1 spec/cucumber/wire/connections_spec.rb
cucumber-wire-5.0.0 spec/cucumber/wire/connections_spec.rb
cucumber-wire-4.0.1 spec/cucumber/wire/connections_spec.rb
cucumber-wire-3.1.0 spec/cucumber/wire/connections_spec.rb
cucumber-wire-3.0.0 spec/cucumber/wire/connections_spec.rb
cucumber-wire-2.0.1 spec/cucumber/wire/connections_spec.rb
cucumber-wire-2.0.0 spec/cucumber/wire/connections_spec.rb
cucumber-wire-1.2.0 spec/cucumber/wire/connections_spec.rb
cucumber-wire-1.1.0 spec/cucumber/wire/connections_spec.rb
cucumber-wire-1.0.0 spec/cucumber/wire/connections_spec.rb