Skip to content

Commit 7a18aaa

Browse files
committed
Fix the normalizer_spec to expect the md syntax
1 parent b2d617b commit 7a18aaa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/lib/msf/util/document_generator/normalizer_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
require 'rex'
2+
require 'msf/core/module/reference'
23
require 'msf/util/document_generator'
34
require 'msf/util/document_generator/pull_request_finder'
45

@@ -10,7 +11,7 @@
1011
let(:mod_shortname) { 'ms08_067_netapi' }
1112
let(:mod_name) { 'MS08-067' }
1213
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')] }
1415
let(:mod_platforms) { 'win' }
1516
let(:mod_options) { { 'RHOST' => rhost_option } }
1617
let(:mod_normal_rank) { 300 }
@@ -159,7 +160,7 @@
159160
describe 'normalize_references' do
160161
context 'when an array of references is given' do
161162
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://')
163164
end
164165
end
165166
end

0 commit comments

Comments
 (0)