Sha256: 3f6c7d94ae448ba45701136b94b6af2671b054d4210dd61d82ef8e4e398a5a87
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
require 'spec_helper' describe Mongo::Session::ServerSession do describe '#initialize' do it 'sets the last use variable to the current time' do expect(described_class.new.last_use).to be_within(0.2).of(Time.now) end it 'sets a UUID as the session id' do expect(described_class.new.session_id).to be_a(BSON::Document) expect(described_class.new.session_id[:id]).to be_a(BSON::Binary) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongo-2.5.0.beta | spec/mongo/session/server_session_spec.rb |