spec/mongo/collection/view/explainable_spec.rb in mongo-2.14.1 vs spec/mongo/collection/view/explainable_spec.rb in mongo-2.15.0.alpha
- old
+ new
@@ -80,10 +80,10 @@
min_server_fcv '3.2'
it 'triggers server error' do
lambda do
explain
- end.should raise_error(Mongo::Error::OperationFailure, /verbosity string must be/)
+ end.should raise_error(Mongo::Error::OperationFailure, /verbosity string must be|value .* for field .*verbosity.* is not a valid value/)
end
end
context 'valid symbol value' do
let(:verbosity) { :query_planner }