spec/mongo/protocol/msg_spec.rb in mongo-2.13.0.beta1 vs spec/mongo/protocol/msg_spec.rb in mongo-2.13.0.rc1

- old
+ new

@@ -423,9 +423,19 @@ it 'does not check the sequence document keys' do expect(message.serialize).to be_a(BSON::ByteBuffer) end end + + [:more_to_come, :exhaust_allowed].each do |flag| + context "with #{flag} flag" do + let(:flags) { [flag] } + + it "round trips #{flag} flag" do + expect(deserialized.flags).to eq(flags) + end + end + end end describe '#deserialize' do context 'when the payload type is valid' do