Skip to content

Commit 0444bda

Browse files
committed
Add test for server wire version range max being higher
1 parent 03d91e9 commit 0444bda

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

spec/mongo/server/description/features_spec.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@
2424
end
2525
end
2626

27+
context 'when the server wire version range max is higher' do
28+
29+
let(:features) do
30+
described_class.new(0..4)
31+
end
32+
33+
it 'sets the server wire version range' do
34+
expect(features.server_wire_versions).to eq(0..4)
35+
end
36+
end
37+
2738
context 'when the server wire version range max is lower' do
2839

2940
it 'raises an exception' do
@@ -33,7 +44,7 @@
3344
end
3445
end
3546

36-
context 'when the server wire version range is lower' do
47+
context 'when the server wire version range max is lower' do
3748

3849
let(:features) do
3950
described_class.new(0..2)

0 commit comments

Comments
 (0)