mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
d6bf0fd781
MSP-13484 Disabled expose_dsl_globally in spec_helper, so need to qualify top-level describe.
30 lines
1.3 KiB
Ruby
30 lines
1.3 KiB
Ruby
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'
|
|
end |