Skip to content

Commit 3d8330f

Browse files
committed
RUBY-2295 require 3.4+ server for collation tests
1 parent 18610b9 commit 3d8330f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Diff for: spec/mongo/collection_spec.rb

+7-5
Original file line numberDiff line numberDiff line change
@@ -946,8 +946,10 @@
946946
end
947947
end
948948

949-
context 'when collation has a strength' do
950-
let(:band_collection) do
949+
context 'when collation has a strength' do
950+
min_server_fcv '3.4'
951+
952+
let(:band_collection) do
951953
described_class.new(database, :bands)
952954
end
953955

@@ -956,14 +958,14 @@
956958
band_collection.insert_many([{ name: "Depeche Mode" }, { name: "New Order" }])
957959
end
958960

959-
let(:options) do
961+
let(:options) do
960962
{ collation: { locale: 'en_US', strength: 2 } }
961963
end
962-
let(:band_result) do
964+
let(:band_result) do
963965
band_collection.find({ name: 'DEPECHE MODE' }, options)
964966
end
965967

966-
it 'finds Capitalize from UPPER CASE' do
968+
it 'finds Capitalize from UPPER CASE' do
967969
expect(band_result.count_documents).to eq(1)
968970
end
969971
end

0 commit comments

Comments
 (0)