Module: Jackal::Utils::Spec
- Defined in:
- lib/jackal/utils/spec.rb,
lib/jackal/utils/spec/callback_local.rb
Overview
Testing helpers
Defined Under Namespace
Modules: CallbackLocal
Class Method Summary (collapse)
-
+ (Array<String>) payload_storage(*args)
Valid directories for test payloads.
Class Method Details
+ (Array<String>) payload_storage(*args)
Valid directories for test payloads
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/jackal/utils/spec.rb', line 15 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 |