File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 946
946
end
947
947
end
948
948
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
951
953
described_class . new ( database , :bands )
952
954
end
953
955
956
958
band_collection . insert_many ( [ { name : "Depeche Mode" } , { name : "New Order" } ] )
957
959
end
958
960
959
- let ( :options ) do
961
+ let ( :options ) do
960
962
{ collation : { locale : 'en_US' , strength : 2 } }
961
963
end
962
- let ( :band_result ) do
964
+ let ( :band_result ) do
963
965
band_collection . find ( { name : 'DEPECHE MODE' } , options )
964
966
end
965
967
966
- it 'finds Capitalize from UPPER CASE' do
968
+ it 'finds Capitalize from UPPER CASE' do
967
969
expect ( band_result . count_documents ) . to eq ( 1 )
968
970
end
969
971
end
You can’t perform that action at this time.
0 commit comments