Skip to content

Commit 8900258

Browse files
committed
make sure all test clients use DatabaseCredentials
1 parent e320115 commit 8900258

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/mysql2/client_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77

88
it "should not raise an exception for valid defaults group" do
99
lambda {
10-
@client = Mysql2::Client.new(:default_file => cnf_file, :default_group => "test")
10+
opts = DatabaseCredentials['root'].merge(:default_file => cnf_file, :default_group => "test")
11+
@client = Mysql2::Client.new(opts)
1112
}.should_not raise_error(Mysql2::Error)
1213
end
1314

1415
it "should not raise an exception without default group" do
1516
lambda {
16-
@client = Mysql2::Client.new(:default_file => cnf_file)
17+
@client = Mysql2::Client.new(DatabaseCredentials['root'].merge(:default_file => cnf_file))
1718
}.should_not raise_error(Mysql2::Error)
1819
end
1920
end

0 commit comments

Comments
 (0)