File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
spec/lib/msf/util/document_generator Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
require 'rex'
2
+ require 'msf/core/module/reference'
2
3
require 'msf/util/document_generator'
3
4
require 'msf/util/document_generator/pull_request_finder'
4
5
10
11
let ( :mod_shortname ) { 'ms08_067_netapi' }
11
12
let ( :mod_name ) { 'MS08-067' }
12
13
let ( :mod_pull_requests ) { good_pull_requests }
13
- let ( :mod_refs ) { [ 'URL' , 'http://example.com' ] }
14
+ let ( :mod_refs ) { [ Msf :: Module :: SiteReference . new ( 'URL' , 'http://example.com' ) ] }
14
15
let ( :mod_platforms ) { 'win' }
15
16
let ( :mod_options ) { { 'RHOST' => rhost_option } }
16
17
let ( :mod_normal_rank ) { 300 }
159
160
describe 'normalize_references' do
160
161
context 'when an array of references is given' do
161
162
it 'returns the reference list in HTML' do
162
- expect ( subject . send ( :normalize_references , msf_mod . references ) ) . to include ( '* <a href= ' )
163
+ expect ( subject . send ( :normalize_references , msf_mod . references ) ) . to include ( '* [http:// ' )
163
164
end
164
165
end
165
166
end
You can’t perform that action at this time.
0 commit comments