We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e320115 commit 8900258Copy full SHA for 8900258
spec/mysql2/client_spec.rb
@@ -7,13 +7,14 @@
7
8
it "should not raise an exception for valid defaults group" do
9
lambda {
10
- @client = Mysql2::Client.new(:default_file => cnf_file, :default_group => "test")
+ opts = DatabaseCredentials['root'].merge(:default_file => cnf_file, :default_group => "test")
11
+ @client = Mysql2::Client.new(opts)
12
}.should_not raise_error(Mysql2::Error)
13
end
14
15
it "should not raise an exception without default group" do
16
- @client = Mysql2::Client.new(:default_file => cnf_file)
17
+ @client = Mysql2::Client.new(DatabaseCredentials['root'].merge(:default_file => cnf_file))
18
19
20
0 commit comments