This commit is contained in:
ethicalhack3r
2014-09-21 22:02:30 +02:00
parent 6800d51347
commit b19696090f
6 changed files with 40 additions and 38 deletions

View File

@@ -9,12 +9,12 @@ describe WpTheme do
let(:options) { { name: 'the-oracle' } }
let(:vulns_file) { MODELS_FIXTURES + '/wp_theme/vulnerable/themes_vulns.json' }
let(:expected_refs) { {
:url => ['Ref 1', 'Ref 2'],
:cve => ['2011-001'],
:secunia => ['secunia'],
:osvdb => ['osvdb'],
:metasploit => ['exploit/ex1'],
:exploitdb => ['exploitdb']
'url' => ['Ref 1,Ref 2'],
'cve' => ['2011-001'],
'secunia' => ['secunia'],
'osvdb' => ['osvdb'],
'metasploit' => ['exploit/ex1'],
'exploitdb' => ['exploitdb']
} }
let(:expected_vulns) { Vulnerabilities.new << Vulnerability.new('I see you', 'FPD', expected_refs) }
end
@@ -32,4 +32,4 @@ describe WpTheme do
its(:uri) { is_expected.to eq uri.merge(theme_path) }
end
end
end