WpVersion::Vulnerable specs

This commit is contained in:
erwanlr
2013-03-28 15:33:35 +01:00
parent ec9eadda8e
commit a7bd5044c4
4 changed files with 56 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
class WpVersion < WpItem
module Vulnerable
def vulns_file
unless @vulns_file
@vulns_file = WP_VULNS_FILE
@@ -12,5 +13,6 @@ class WpVersion < WpItem
def vulns_xpath
"//wordpress[@version='#{@number}']/vulnerability"
end
end
end