WpVersion::Findable specs

This commit is contained in:
erwanlr
2013-03-28 20:48:19 +01:00
parent a7bd5044c4
commit 565bfceb49
97 changed files with 456 additions and 18105 deletions

View File

@@ -3,6 +3,7 @@
class WpVersion < WpItem
module Vulnerable
# @return [ String ] The path to the file containing vulnerabilities
def vulns_file
unless @vulns_file
@vulns_file = WP_VULNS_FILE
@@ -10,6 +11,7 @@ class WpVersion < WpItem
@vulns_file
end
# @return [ String ]
def vulns_xpath
"//wordpress[@version='#{@number}']/vulnerability"
end