You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/mysql2/client_spec.rb
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,10 @@ def connect *args
78
78
end
79
79
80
80
it"should be able to connect via SSL options"do
81
-
pending("DON'T WORRY, THIS TEST PASSES :) - but is machine-specific. You need to have MySQL running with SSL configured and enabled. Then update the paths in this test to your needs and remove the pending state.")
81
+
ssl=@client.query"SHOW VARIABLES LIKE 'have_%ssl'"
82
+
ssl_enabled=ssl.any?{|x| x['Value'] == 'ENABLED'}
83
+
pending("DON'T WORRY, THIS TEST PASSES - but SSL is not enabled in your MySQL daemon.")unlessssl_enabled
84
+
pending("DON'T WORRY, THIS TEST PASSES - but you must update the SSL cert paths in this test and remove this pending state.")
0 commit comments