Pending rspec

bug/bundler_fix
wchen-r7 2015-07-11 00:16:48 -05:00
parent c8c3e1a258
commit b1208e1337
1 changed files with 20 additions and 3 deletions

View File

@ -53,7 +53,13 @@ describe Msf::Exploit::Remote::BrowserAutopwnv2 do
end end
def create_fake_job(id) def create_fake_job(id)
[id.to_s, double('job')] ctx = double('ctx')
handler = create_fake_windows_meterpreter
allow(ctx).to receive(:first).and_return(handler)
job = [id.to_s, double('job')]
allow(job).to receive(:ctx).and_return(ctx)
job
end end
def create_fake_exploit(opts={}) def create_fake_exploit(opts={})
@ -555,7 +561,7 @@ describe Msf::Exploit::Remote::BrowserAutopwnv2 do
end end
end end
describe '#start_payload_listeners' do skip '#start_payload_listeners' do
end end
describe '#parse_rank' do describe '#parse_rank' do
@ -650,7 +656,8 @@ describe Msf::Exploit::Remote::BrowserAutopwnv2 do
end end
end end
describe '#select_payload' do skip '#select_payload' do
end end
describe '#start_exploits' do describe '#start_exploits' do
@ -767,5 +774,15 @@ describe Msf::Exploit::Remote::BrowserAutopwnv2 do
end end
end end
skip '#configure_job_output' do
end
describe '#session_count' do
it 'returns the total session count' do
subject.instance_variable_set(:@payload_job_ids, job_ids)
expect(subject.session_count).to eq(0)
end
end
end end