Skip to content

Commit b1208e1

Browse files
committed
Pending rspec
1 parent c8c3e1a commit b1208e1

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

spec/lib/msf/core/exploit/browser_autopwnv2_spec.rb

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ def mock_stop_job(arg)
5353
end
5454

5555
def create_fake_job(id)
56-
[id.to_s, double('job')]
56+
ctx = double('ctx')
57+
handler = create_fake_windows_meterpreter
58+
allow(ctx).to receive(:first).and_return(handler)
59+
job = [id.to_s, double('job')]
60+
allow(job).to receive(:ctx).and_return(ctx)
61+
62+
job
5763
end
5864

5965
def create_fake_exploit(opts={})
@@ -555,7 +561,7 @@ def mock_exploit_create(full_name)
555561
end
556562
end
557563

558-
describe '#start_payload_listeners' do
564+
skip '#start_payload_listeners' do
559565
end
560566

561567
describe '#parse_rank' do
@@ -650,7 +656,8 @@ def mock_exploit_create(full_name)
650656
end
651657
end
652658

653-
describe '#select_payload' do
659+
skip '#select_payload' do
660+
654661
end
655662

656663
describe '#start_exploits' do
@@ -767,5 +774,15 @@ def get_stdout(&block)
767774
end
768775
end
769776

777+
skip '#configure_job_output' do
778+
end
779+
780+
describe '#session_count' do
781+
it 'returns the total session count' do
782+
subject.instance_variable_set(:@payload_job_ids, job_ids)
783+
expect(subject.session_count).to eq(0)
784+
end
785+
end
786+
770787

771788
end

0 commit comments

Comments
 (0)