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

Class Method Summary collapse

Class Attribute Details

.system_runnerClass

Returns class used to run subsystem.

Returns:

  • (Class)

    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

Parameters:

  • args (String)

    list of directories to append

Returns:

  • (Array<String>)


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