Sha256: 168b6d0dd537b82d68d146b0c35c79059d68d78f9bcd1f6df76a08a31f65faea
Contents?: true
Size: 676 Bytes
Versions: 2
Compression:
Stored size: 676 Bytes
Contents
# -*- coding: binary -*- require 'test/unit' # DEFAULTS module Rex class Test $_REX_TEST_NO_MOCK = nil $_REX_TEST_TIMEOUT = 30 $_REX_TEST_SMB_HOST = '10.4.10.58' $_REX_TEXT_SMB_USER = 'SMBTest' $_REX_TEXT_SMB_PASS = 'SMBTest' # overwrite test defaults with rex/test-config.rb 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 def self.cantmock() if (!$_REX_TEST_NO_MOCK) raise RuntimeError, "*** $_REX_TEST_NO_MOCK must not be set for this test ***", caller end end Rex::Test.load() end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.68 | lib/rex/test.rb |
librex-0.0.66 | lib/rex/test.rb |