Skip to content

Commit 4029dbd

Browse files
David MaloneyDavid Maloney
authored andcommitted
try not to forget fixing the spec...
1 parent 38a4c2a commit 4029dbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@
4848

4949
describe '#auto_target?' do
5050
it 'should return true if the automatic target is selected' do
51+
host_addr = '192.168.1.5'
52+
host_obj = FactoryGirl.create(:mdm_host, address: host_addr )
5153
windows_exploit.datastore['TARGET'] = 0
54+
windows_exploit.datastore['WORKSPACE'] = host_obj.workspace.name
55+
windows_exploit.datastore['RHOST'] = host_addr
5256
expect(windows_exploit.auto_target?).to be true
5357
end
5458

0 commit comments

Comments
 (0)