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
|