fix rspecs #179
This commit is contained in:
@@ -15,7 +15,7 @@ class Vulnerability
|
||||
# @param [ String ] fixed_in Vuln fixed in Version X
|
||||
#
|
||||
# @return [ Vulnerability ]
|
||||
def initialize(title, type, references, metasploit_modules = [], fixed_in)
|
||||
def initialize(title, type, references, metasploit_modules = [], fixed_in = '')
|
||||
@title = title
|
||||
@type = type
|
||||
@references = references
|
||||
|
||||
@@ -12,6 +12,10 @@ shared_examples 'WpItem::Vulnerable' do
|
||||
describe '#vulnerabilities' do
|
||||
let(:empty_file) { MODELS_FIXTURES + '/wp_item/vulnerable/empty.xml' }
|
||||
|
||||
before do
|
||||
stub_request(:get, /.*/)
|
||||
end
|
||||
|
||||
after do
|
||||
subject.vulns_file = @vulns_file
|
||||
subject.vulns_xpath = vulns_xpath if defined?(vulns_xpath)
|
||||
|
||||
Reference in New Issue
Block a user