File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 2
2
require 'mocha'
3
3
4
4
begin
5
- gem 'net-ssh' , ">= 2.0.0"
6
5
require 'net/ssh'
6
+ require 'net/ssh/version'
7
+ raise LoadError , "wrong version" unless Net ::SSH ::Version ::STRING >= '1.99.0'
7
8
rescue LoadError
8
- $LOAD_PATH. unshift "#{ File . dirname ( __FILE__ ) } /../../net-ssh/lib"
9
-
10
9
begin
10
+ gem 'net-ssh' , ">= 2.0.0"
11
11
require 'net/ssh'
12
- require 'net/ssh/version'
13
- raise LoadError , "wrong version" unless Net ::SSH ::Version ::STRING >= '1.99.0'
14
12
rescue LoadError => e
15
13
abort "could not load net/ssh v2 (#{ e . inspect } )"
16
14
end
@@ -170,4 +168,4 @@ module V03; end
170
168
module V04 ; end
171
169
module V05 ; end
172
170
module V06 ; end
173
- end
171
+ end
Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ def setup
11
11
end
12
12
13
13
def teardown
14
- ENV [ 'TZ' ] = @save_tz
14
+ if @save_tz
15
+ ENV [ 'TZ' ] = @save_tz
16
+ else
17
+ ENV . delete ( 'TZ' )
18
+ end
15
19
end
16
20
17
21
def test_directory?
@@ -46,4 +50,4 @@ def test_longname_for_file_should_format_as_file
46
50
assert_equal "-rwxr-xr-x jamis users 10240 Mar 12 03:40 test" ,
47
51
@file . longname
48
52
end
49
- end
53
+ end
You can’t perform that action at this time.
0 commit comments