spec/mongo/session/server_session_spec.rb in mongo-2.5.3 vs spec/mongo/session/server_session_spec.rb in mongo-2.6.0
- old
+ new
@@ -16,11 +16,11 @@
end
describe '#next_txn_number' do
it 'advances and returns the next transaction number' do
- expect(described_class.new.next_txn_num).to be(0)
+ expect(described_class.new.next_txn_num).to be(1)
end
context 'when the method is called multiple times' do
let(:server_session) do
@@ -31,10 +31,10 @@
server_session.next_txn_num
server_session.next_txn_num
end
it 'advances and returns the next transaction number' do
- expect(server_session.next_txn_num).to be(2)
+ expect(server_session.next_txn_num).to be(3)
end
end
end
describe '#inspect' do