test/common.rb in net-sftp-2.0.1 vs test/common.rb in net-sftp-2.0.2
- old
+ new
@@ -1,18 +1,16 @@
require 'test/unit'
require 'mocha'
begin
- gem 'net-ssh', ">= 2.0.0"
require 'net/ssh'
+ require 'net/ssh/version'
+ raise LoadError, "wrong version" unless Net::SSH::Version::STRING >= '1.99.0'
rescue LoadError
- $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../net-ssh/lib"
-
begin
+ gem 'net-ssh', ">= 2.0.0"
require 'net/ssh'
- require 'net/ssh/version'
- raise LoadError, "wrong version" unless Net::SSH::Version::STRING >= '1.99.0'
rescue LoadError => e
abort "could not load net/ssh v2 (#{e.inspect})"
end
end
@@ -168,6 +166,6 @@
module V02; end
module V03; end
module V04; end
module V05; end
module V06; end
-end
\ No newline at end of file
+end