Skip to content

Commit 3b5b01e

Browse files
committed
1.8.7 doesn't support trailing commas
1 parent 5b1d095 commit 3b5b01e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/mysql2/client_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,18 @@ def connect(*args)
125125
# You may need to adjust the lines below to match your SSL certificate paths
126126
ssl_client = nil
127127
expect {
128+
# rubocop:disable Style/TrailingComma
128129
ssl_client = Mysql2::Client.new(
129130
DatabaseCredentials['root'].merge(
130131
'host' => 'mysql2gem.example.com', # must match the certificates
131132
:sslkey => '/etc/mysql/client-key.pem',
132133
:sslcert => '/etc/mysql/client-cert.pem',
133134
:sslca => '/etc/mysql/ca-cert.pem',
134135
:sslcipher => 'DHE-RSA-AES256-SHA',
135-
:sslverify => true,
136+
:sslverify => true
136137
)
137138
)
139+
# rubocop:enable Style/TrailingComma
138140
}.not_to raise_error
139141

140142
results = ssl_client.query("SHOW STATUS WHERE Variable_name = \"Ssl_version\" OR Variable_name = \"Ssl_cipher\"").to_a

0 commit comments

Comments
 (0)