Fix the DB/Session test

bug/bundler_fix
OJ 2016-11-05 05:59:31 +10:00
parent abe46024de
commit 5f5684841b
No known key found for this signature in database
GPG Key ID: D5DC61FB93260597
1 changed files with 2 additions and 1 deletions

View File

@ -70,6 +70,7 @@ RSpec.shared_examples_for 'Msf::DBManager::Session' do
session.exploit = module_instance
session.exploit_datastore = exploit_datastore
session.info = 'Info'
session.arch = 'Arch'
session.platform = 'Platform'
session.session_host = host.address
session.sid = rand(100)
@ -426,7 +427,7 @@ RSpec.shared_examples_for 'Msf::DBManager::Session' do
it { expect(subject.last_seen).to be_within(1.second).of(Time.now.utc) }
it { expect(subject.local_id).to eq(session.sid) }
it { expect(subject.opened_at).to be_within(1.second).of(Time.now.utc) }
it { expect(subject.platform).to eq(session.platform) }
it { expect(subject.platform).to eq(session.session_type) }
it { expect(subject.routes).to eq([]) }
it { expect(subject.stype).to eq(session.type) }
it { expect(subject.via_payload).to eq(session.via_payload) }