@@ -49,19 +49,24 @@ def test_default_id_with_host_and_port
49
49
assert_equal "redis://host:1234/0" , redis . connection . fetch ( :id )
50
50
end
51
51
52
+ def test_default_id_with_host_and_port_and_ssl
53
+ redis = Redis . new ( OPTIONS . merge ( host : 'host' , port : '1234' , db : 0 , ssl : true ) )
54
+ assert_equal "rediss://host:1234/0" , redis . connection . fetch ( :id )
55
+ end
56
+
52
57
def test_default_id_with_host_and_port_and_explicit_scheme
53
58
redis = Redis . new ( OPTIONS . merge ( host : "host" , port : "1234" , db : 0 , scheme : "foo" ) )
54
- assert_equal "redis ://host:1234/0" , redis . connection . fetch ( :id )
59
+ assert_equal "foo ://host:1234/0" , redis . connection . fetch ( :id )
55
60
end
56
61
57
62
def test_default_id_with_path
58
63
redis = Redis . new ( OPTIONS . merge ( path : "/tmp/redis.sock" , db : 0 ) )
59
- assert_equal "redis :///tmp/redis.sock/0" , redis . connection . fetch ( :id )
64
+ assert_equal "unix :///tmp/redis.sock/0" , redis . connection . fetch ( :id )
60
65
end
61
66
62
67
def test_default_id_with_path_and_explicit_scheme
63
68
redis = Redis . new ( OPTIONS . merge ( path : "/tmp/redis.sock" , db : 0 , scheme : "foo" ) )
64
- assert_equal "redis :///tmp/redis.sock/0" , redis . connection . fetch ( :id )
69
+ assert_equal "unix :///tmp/redis.sock/0" , redis . connection . fetch ( :id )
65
70
end
66
71
67
72
def test_override_id
0 commit comments