File: disable-gem-in-tests.patch

package info (click to toggle)
ruby-net-scp 1.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 216 kB
  • sloc: ruby: 1,913; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/test/common.rb
+++ b/test/common.rb
@@ -1,10 +1,11 @@
 require 'test/unit'
 require 'mocha'
+ require 'net/ssh'
 
-begin
-  gem 'net-ssh', ">= 2.0.0"
-  require 'net/ssh'
-rescue LoadError
+#begin
+#  gem 'net-ssh', ">= 2.0.0"
+#  require 'net/ssh'
+#rescue LoadError
   $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../../net-ssh/lib"
 
   begin
@@ -14,7 +15,7 @@ rescue LoadError
   rescue LoadError => e
     abort "could not load net/ssh v2 (#{e.inspect})"
   end
-end
+#end
 
 $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib"