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