Parent

Methods

Class/Module Index [+]

Quicksearch

Rex::Test

Public Class Methods

cantmock() click to toggle source
# File lib/rex/test.rb, line 26
def self.cantmock()
    if (!$_REX_TEST_NO_MOCK)
        raise RuntimeError, "*** $_REX_TEST_NO_MOCK must not be set for this test ***", caller
    end
end
load() click to toggle source

overwrite test defaults with rex/test-config.rb

# File lib/rex/test.rb, line 14
def self.load()
    file = File.join( ENV.fetch('HOME'), '.msf3', 'test')
    begin
        if File.stat(file + '.rb')
            require file
        end
    rescue
        # just ignore the errors
    end

end

[Validate]

Generated with the Darkfish Rdoc Generator 2.