Skip to content

Commit 4e6ff69

Browse files
committed
RUBY-2295 require 3.4+ server for collation tests
1 parent 8802165 commit 4e6ff69

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

spec/mongo/collection_spec.rb

+7-5
Original file line numberDiff line numberDiff line change
@@ -941,8 +941,10 @@
941941
end
942942
end
943943

944-
context 'when collation has a strength' do
945-
let(:band_collection) do
944+
context 'when collation has a strength' do
945+
min_server_fcv '3.4'
946+
947+
let(:band_collection) do
946948
described_class.new(database, :bands)
947949
end
948950

@@ -951,14 +953,14 @@
951953
band_collection.insert_many([{ name: "Depeche Mode" }, { name: "New Order" }])
952954
end
953955

954-
let(:options) do
956+
let(:options) do
955957
{ collation: { locale: 'en_US', strength: 2 } }
956958
end
957-
let(:band_result) do
959+
let(:band_result) do
958960
band_collection.find({ name: 'DEPECHE MODE' }, options)
959961
end
960962

961-
it 'finds Capitalize from UPPER CASE' do
963+
it 'finds Capitalize from UPPER CASE' do
962964
expect(band_result.count_documents).to eq(1)
963965
end
964966
end

0 commit comments

Comments
 (0)