output total number of plugins and themes

This commit is contained in:
Christian Mehlmauer
2013-02-08 00:13:27 +01:00
parent a8a556464b
commit a07d55f1ab
7 changed files with 45 additions and 0 deletions

View File

@@ -192,6 +192,12 @@ shared_examples_for 'WpPlugins' do
@expected_plugins = [plugins[1]]
end
end
describe '#plugin_vulns_count' do
it 'should return the correct number' do
xml = "#{SPEC_FIXTURES_WPSCAN_WP_PLUGIN_DIR}/vulnerabilities/plugin_vulns.xml"
@module.plugin_vulns_count(xml).should === 2
end
end
end

View File

@@ -207,4 +207,11 @@ shared_examples_for 'WpThemes' do
end
end
end
describe '#theme_vulns_count' do
it 'should return the correct number' do
xml = "#{SPEC_FIXTURES_WPSCAN_WP_THEME_DIR}/vulnerabilities/theme_vulns.xml"
@module.theme_vulns_count(xml).should === 2
end
end
end

View File

@@ -285,4 +285,5 @@ describe WpTheme do
(instance === instance2).should == true
end
end
end