bugfixing and rspec tests

This commit is contained in:
Christian Mehlmauer
2012-09-19 22:25:13 +02:00
parent d677dd83ee
commit 7ca2916215
6 changed files with 18 additions and 14 deletions

View File

@@ -28,7 +28,7 @@ class WpItem < Vulnerable
@path = options[:path]
@name = options[:name] || extract_name_from_url
@vulns_xml = options[:vulns_xml]
@vulns_xpath = options[:vulns_xpath]
@vulns_xpath = options[:vulns_xpath].sub(/\$name\$/, @name)
raise("url not set") unless @url
raise("path not set") unless @path