CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/spec/modules_spec.rb
Views: 1903
1
require 'spec_helper'
2
3
RSpec.describe 'modules', :content do
4
modules_pathname = Pathname.new(__FILE__).parent.parent.join('modules')
5
6
it_should_behave_like 'all modules with module type can be instantiated',
7
module_type: 'auxiliary',
8
modules_pathname: modules_pathname,
9
type_directory: 'auxiliary'
10
11
it_should_behave_like 'all modules with module type can be instantiated',
12
module_type: 'encoder',
13
modules_pathname: modules_pathname,
14
type_directory: 'encoders'
15
16
it_should_behave_like 'all modules with module type can be instantiated',
17
module_type: 'exploit',
18
modules_pathname: modules_pathname,
19
type_directory: 'exploits'
20
21
it_should_behave_like 'all modules with module type can be instantiated',
22
module_type: 'nop',
23
modules_pathname: modules_pathname,
24
type_directory: 'nops'
25
26
it_should_behave_like 'all modules with module type can be instantiated',
27
module_type: 'post',
28
modules_pathname: modules_pathname,
29
type_directory: 'posts'
30
it_should_behave_like 'all modules with module type can be instantiated',
31
module_type: 'payload',
32
modules_pathname: modules_pathname,
33
type_directory: 'payload'
34
end
35
36