This commit is contained in:
Christian Mehlmauer
2013-05-06 22:47:20 +02:00
parent 77ebd9d4fd
commit 9c0ce2a1cd
2 changed files with 5 additions and 1 deletions

View File

@@ -12,6 +12,10 @@ shared_examples 'WpItem::Vulnerable' do
describe '#vulnerabilities' do
let(:empty_file) { MODELS_FIXTURES + '/wp_item/vulnerable/empty.xml' }
before do
stub_request(:get, /.*/)
end
after do
subject.vulns_file = @vulns_file
subject.vulns_xpath = vulns_xpath if defined?(vulns_xpath)