@@ -37,27 +37,27 @@ def test_connection_information
37
37
38
38
def test_default_id_with_host_and_port
39
39
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 )
41
41
end
42
42
43
43
def test_default_id_with_host_and_port_and_ssl
44
44
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 )
46
46
end
47
47
48
48
def test_default_id_with_host_and_port_and_explicit_scheme
49
49
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 )
51
51
end
52
52
53
53
def test_default_id_with_path
54
54
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 )
56
56
end
57
57
58
58
def test_default_id_with_path_and_explicit_scheme
59
59
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 )
61
61
end
62
62
63
63
def test_override_id
0 commit comments