spec/mongo/protocol/msg_spec.rb in mongo-2.18.2 vs spec/mongo/protocol/msg_spec.rb in mongo-2.18.3
- old
+ new
@@ -401,13 +401,11 @@
let(:options) do
{ validating_keys: true }
end
- it 'checks the sequence document keys' do
- expect {
- message.serialize
- }.to raise_exception(BSON::String::IllegalKey)
+ it 'does not check the sequence document keys' do
+ expect(message.serialize).to be_a(BSON::ByteBuffer)
end
end
context 'when the validating_keys option is false with payload 1' do