Module: Jackal::Utils::Spec
- Defined in:
- lib/jackal/utils/spec.rb,
lib/jackal/utils/spec/generator.rb,
lib/jackal/utils/spec/callback_local.rb
Overview
Testing helpers
Defined Under Namespace
Modules: CallbackLocal Classes: Generator
Class Attribute Summary collapse
-
.system_runner ⇒ Class
Class used to run subsystem.
Class Method Summary collapse
-
.payload_storage(*args) ⇒ Array<String>
Valid directories for test payloads.
Class Attribute Details
.system_runner ⇒ Class
Returns class used to run subsystem.
13 14 15 |
# File 'lib/jackal/utils/spec.rb', line 13 def system_runner @system_runner end |
Class Method Details
.payload_storage(*args) ⇒ Array<String>
Valid directories for test payloads
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/jackal/utils/spec.rb', line 19 def payload_storage(*args) unless(@_payload_dirs) @_payload_dirs = [] end unless(args.empty?) @_payload_dirs += args.find_all do |dir_path| File.directory?(dir_path) end @_payload_dirs.uniq! end @_payload_dirs end |