spec/mysql2/error_spec.rb in mysql2-0.3.11 vs spec/mysql2/error_spec.rb in mysql2-0.3.12b1

- old
+ new

@@ -1,17 +1,17 @@ # encoding: UTF-8 require 'spec_helper' describe Mysql2::Error do before(:each) do - @client = Mysql2::Client.new :encoding => "utf8" + @client = Mysql2::Client.new(DatabaseCredentials['root'].merge(:encoding => "utf8")) begin @client.query("HAHAHA") rescue Mysql2::Error => e @error = e end - @client2 = Mysql2::Client.new :encoding => "big5" + @client2 = Mysql2::Client.new(DatabaseCredentials['root'].merge(:encoding => "big5")) begin @client2.query("HAHAHA") rescue Mysql2::Error => e @error2 = e end