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 11require 'common'
22
33class ProtocolTest < Net ::SFTP ::TestCase
4- 1 . upto ( 6 ) do |version |
4+ 1 . upto ( 5 ) do |version |
55 define_method ( "test_load_version_#{ version } _should_return_v#{ version } _driver" ) do
66 session = stub ( 'session' , :logger => nil )
77 driver = Net ::SFTP ::Protocol . load ( session , version )
88 assert_instance_of Net ::SFTP ::Protocol . const_get ( "V%02d" % version ) ::Base , driver
99 end
1010 end
1111
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" % version ) ::Extended , driver
16+ end
17+
1218 def test_load_version_7_should_be_unsupported
1319 assert_raises ( NotImplementedError ) do
1420 Net ::SFTP ::Protocol . load ( stub ( 'session' ) , 7 )
1521 end
1622 end
17- end
23+ end
You can’t perform that action at this time.
0 commit comments