modules_spec.rb 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. require 'spec_helper'
  2. RSpec.describe 'modules', :content do
  3. modules_pathname = Pathname.new(__FILE__).parent.parent.join('modules')
  4. it_should_behave_like 'all modules with module type can be instantiated',
  5. module_type: 'auxiliary',
  6. modules_pathname: modules_pathname,
  7. type_directory: 'auxiliary'
  8. it_should_behave_like 'all modules with module type can be instantiated',
  9. module_type: 'encoder',
  10. modules_pathname: modules_pathname,
  11. type_directory: 'encoders'
  12. it_should_behave_like 'all modules with module type can be instantiated',
  13. module_type: 'exploit',
  14. modules_pathname: modules_pathname,
  15. type_directory: 'exploits'
  16. it_should_behave_like 'all modules with module type can be instantiated',
  17. module_type: 'nop',
  18. modules_pathname: modules_pathname,
  19. type_directory: 'nops'
  20. it_should_behave_like 'all modules with module type can be instantiated',
  21. module_type: 'post',
  22. modules_pathname: modules_pathname,
  23. type_directory: 'posts'
  24. it_should_behave_like 'all modules with module type can be instantiated',
  25. module_type: 'payload',
  26. modules_pathname: modules_pathname,
  27. type_directory: 'payload'
  28. end