1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00
metasploit-framework/test/tests/01_all_exploits_have_payloads_test.rb
James Lee 862efac37d add a rakefile so 'rvm specs' works
git-svn-id: file:///home/svn/framework3/trunk@7896 4d416f70-5f16-0410-b530-b9f4589650da
2009-12-17 01:07:51 +00:00

15 lines
348 B
Ruby

require 'testbase'
describe Msf::Simple::Framework do
$msf.exploits.each_module do |name, mod|
e = $msf.exploits.create(name)
e.targets.each_with_index do |t, idx|
it "#{name} target #{idx} should have compatible payloads" do
e.datastore['TARGET'] = idx
r = e.compatible_payloads
r.length.should_not == 0
end
end
end
end