WpTheme::Findable specs

This commit is contained in:
erwanlr
2013-03-26 15:34:20 +01:00
parent 1168cf7305
commit 40f4057d47
10 changed files with 188 additions and 269 deletions

View File

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