Sha256: 72e8678e3f83bb41351dcd4efe97e1aaaf7f68334517e6aaf7e3da0a4fe75b31
Contents?: true
Size: 958 Bytes
Versions: 3
Compression:
Stored size: 958 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'tempfile' require 'minitest/autorun' require 'minitest/reporters' require 'mocha/minitest' require 'stringio' require 'json' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'sshkit' Dir[File.expand_path('test/support/*.rb')].each { |file| require file } class UnitTest < Minitest::Test def setup SSHKit.reset_configuration! end SSHKit::Backend::ConnectionPool.class_eval do alias_method :old_flush_connections, :flush_connections def flush_connections Thread.current[:sshkit_pool] = {} end end end class FunctionalTest < Minitest::Test def setup require_relative "support/docker_wrapper" return if DockerWrapper.running? DockerWrapper.start DockerWrapper.wait_for_ssh_server end end # # Force colours in Autotest # Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sshkit-1.23.2 | test/helper.rb |
sshkit-1.23.1 | test/helper.rb |
sshkit-1.23.0 | test/helper.rb |