Vulnerability::Output specs

This commit is contained in:
erwanlr
2013-03-22 18:25:17 +01:00
parent af4ecc4084
commit d937b20d79
5 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
# encoding: UTF-8
require 'spec_helper'
describe Vulnerability::Output do
let(:modules_url) { 'http://www.metasploit.com/modules/' }
describe '::metasploit_module_url' do
after :each do
Vulnerability::Output.metasploit_module_url(@module).should == @expected
end
it 'removes the leading slash' do
@module = '/exploit/testing'
@expected = modules_url + 'exploit/testing'
end
it 'returns the correct url' do
@module = 'gathering/yolo'
@expected = modules_url + @module
end
end
describe '#output' do
# How to test it ? oO
end
end