2014-10-20 17:52:07 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2015-10-16 20:57:04 +00:00
|
|
|
RSpec.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
|