File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
require 'common'
2
2
3
3
class ProtocolTest < Net ::SFTP ::TestCase
4
- 1 . upto ( 6 ) do |version |
4
+ 1 . upto ( 5 ) do |version |
5
5
define_method ( "test_load_version_#{ version } _should_return_v#{ version } _driver" ) do
6
6
session = stub ( 'session' , :logger => nil )
7
7
driver = Net ::SFTP ::Protocol . load ( session , version )
8
8
assert_instance_of Net ::SFTP ::Protocol . const_get ( "V%02d" % version ) ::Base , driver
9
9
end
10
10
end
11
11
12
+ def test_load_version_6_should_return_v6_driver
13
+ session = stub ( 'session' , :logger => nil )
14
+ driver = Net ::SFTP ::Protocol . load ( session , 6 )
15
+ assert_instance_of Net ::SFTP ::Protocol . const_get ( "V06" ) ::Extended , driver
16
+ end
17
+
12
18
def test_load_version_7_should_be_unsupported
13
19
assert_raises ( NotImplementedError ) do
14
20
Net ::SFTP ::Protocol . load ( stub ( 'session' ) , 7 )
15
21
end
16
22
end
17
- end
23
+ end
You can’t perform that action at this time.
0 commit comments