@@ -37,27 +37,27 @@ def test_connection_information
3737
3838 def test_default_id_with_host_and_port
3939 redis = Redis . new ( OPTIONS . merge ( host : "host" , port : "1234" , db : 0 ) )
40- assert_equal "redis://host:1234/0 " , redis . connection . fetch ( :id )
40+ assert_equal "redis://host:1234" , redis . connection . fetch ( :id )
4141 end
4242
4343 def test_default_id_with_host_and_port_and_ssl
4444 redis = Redis . new ( OPTIONS . merge ( host : 'host' , port : '1234' , db : 0 , ssl : true ) )
45- assert_equal "rediss://host:1234/0 " , redis . connection . fetch ( :id )
45+ assert_equal "rediss://host:1234" , redis . connection . fetch ( :id )
4646 end
4747
4848 def test_default_id_with_host_and_port_and_explicit_scheme
4949 redis = Redis . new ( OPTIONS . merge ( host : "host" , port : "1234" , db : 0 ) )
50- assert_equal "redis://host:1234/0 " , redis . connection . fetch ( :id )
50+ assert_equal "redis://host:1234" , redis . connection . fetch ( :id )
5151 end
5252
5353 def test_default_id_with_path
5454 redis = Redis . new ( OPTIONS . merge ( path : "/tmp/redis.sock" , db : 0 ) )
55- assert_equal "/ tmp/redis.sock/0 " , redis . connection . fetch ( :id )
55+ assert_equal "unix:/// tmp/redis.sock" , redis . connection . fetch ( :id )
5656 end
5757
5858 def test_default_id_with_path_and_explicit_scheme
5959 redis = Redis . new ( OPTIONS . merge ( path : "/tmp/redis.sock" , db : 0 ) )
60- assert_equal "/ tmp/redis.sock/0 " , redis . connection . fetch ( :id )
60+ assert_equal "unix:/// tmp/redis.sock" , redis . connection . fetch ( :id )
6161 end
6262
6363 def test_override_id
0 commit comments