forked from rapid7/metasploit-framework
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodules_spec.rb
34 lines (28 loc) · 1.51 KB
/
modules_spec.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require 'spec_helper'
RSpec.describe 'modules', :content do
modules_pathname = Pathname.new(__FILE__).parent.parent.join('modules')
it_should_behave_like 'all modules with module type can be instantiated',
module_type: 'auxiliary',
modules_pathname: modules_pathname,
type_directory: 'auxiliary'
it_should_behave_like 'all modules with module type can be instantiated',
module_type: 'encoder',
modules_pathname: modules_pathname,
type_directory: 'encoders'
it_should_behave_like 'all modules with module type can be instantiated',
module_type: 'exploit',
modules_pathname: modules_pathname,
type_directory: 'exploits'
it_should_behave_like 'all modules with module type can be instantiated',
module_type: 'nop',
modules_pathname: modules_pathname,
type_directory: 'nops'
it_should_behave_like 'all modules with module type can be instantiated',
module_type: 'post',
modules_pathname: modules_pathname,
type_directory: 'posts'
it_should_behave_like 'all modules with module type can be instantiated',
module_type: 'payload',
modules_pathname: modules_pathname,
type_directory: 'payload'
end