File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def initialize; end
110
110
end
111
111
112
112
test 'configuration attempts to load MySQL driver by default' do
113
- load_jdbc_mysql
113
+ skip 'jdbc/mysql not available' if load_jdbc_mysql . nil?
114
114
115
115
connection_handler = connection_handler_stub
116
116
@@ -121,7 +121,7 @@ def initialize; end
121
121
end
122
122
123
123
test 'configuration uses driver_name from Jdbc::MySQL' do
124
- load_jdbc_mysql
124
+ skip 'jdbc/mysql not available' if load_jdbc_mysql . nil?
125
125
126
126
connection_handler = connection_handler_stub
127
127
@@ -133,7 +133,7 @@ def initialize; end
133
133
end
134
134
135
135
test 'configuration sets up properties according to connector/j driver (>= 8.0)' do
136
- load_jdbc_mysql
136
+ skip 'jdbc/mysql not available' if load_jdbc_mysql . nil?
137
137
138
138
connection_handler = connection_handler_stub
139
139
@@ -150,6 +150,8 @@ def initialize; end
150
150
151
151
def load_jdbc_mysql
152
152
require 'jdbc/mysql'
153
+ rescue LoadError
154
+ return nil
153
155
end
154
156
155
157
end
You can’t perform that action at this time.
0 commit comments