2014-10-20 17:52:07 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2014-10-27 19:25:34 +00:00
|
|
|
describe 'modules', :content do
|
2014-10-20 18:21:22 +00:00
|
|
|
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'
|
2014-10-20 18:31:12 +00:00
|
|
|
|
|
|
|
it_should_behave_like 'all modules with module type can be instantiated',
|
|
|
|
module_type: 'encoder',
|
|
|
|
modules_pathname: modules_pathname,
|
|
|
|
type_directory: 'encoders'
|
2014-10-20 18:32:55 +00:00
|
|
|
|
|
|
|
it_should_behave_like 'all modules with module type can be instantiated',
|
|
|
|
module_type: 'exploit',
|
|
|
|
modules_pathname: modules_pathname,
|
|
|
|
type_directory: 'exploits'
|
2014-10-20 18:35:57 +00:00
|
|
|
|
|
|
|
it_should_behave_like 'all modules with module type can be instantiated',
|
|
|
|
module_type: 'nop',
|
|
|
|
modules_pathname: modules_pathname,
|
|
|
|
type_directory: 'nops'
|
2014-10-20 18:42:21 +00:00
|
|
|
|
|
|
|
it_should_behave_like 'all modules with module type can be instantiated',
|
|
|
|
module_type: 'post',
|
|
|
|
modules_pathname: modules_pathname,
|
|
|
|
type_directory: 'posts'
|
2014-10-20 17:52:07 +00:00
|
|
|
end
|