We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b50ba35 commit d3234c4Copy full SHA for d3234c4
spec/mongo/server/description/features_spec.rb
@@ -81,6 +81,31 @@
81
end
82
83
84
+ describe '#max_staleness_enabled?' do
85
+
86
+ context 'when the wire range includes 5' do
87
88
+ let(:features) do
89
+ described_class.new(0..5)
90
+ end
91
92
+ it 'returns true' do
93
+ expect(features).to be_max_staleness_enabled
94
95
96
97
+ context 'when the wire range does not include 5' do
98
99
100
+ described_class.new(0..2)
101
102
103
+ it 'returns false' do
104
+ expect(features).to_not be_max_staleness_enabled
105
106
107
108
109
describe '#find_command_enabled?' do
110
111
context 'when the wire range includes 4' do
0 commit comments