File: connections_spec.rb

package info (click to toggle)
ruby-cucumber-wire 0.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 224 kB
  • sloc: ruby: 754; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 684 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)
          expect(connections.step_matches('')).to eq [:a, :b, :c]
        end

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