File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 17
17
if defined? Encoding
18
18
it "should raise an exception on create for invalid encodings" do
19
19
lambda {
20
- c = Mysql2 ::Client . new ( :encoding => "fake" )
20
+ c = Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] . merge ( :encoding => "fake" ) )
21
21
} . should raise_error ( Mysql2 ::Error )
22
22
end
23
23
24
24
it "should not raise an exception on create for a valid encoding" do
25
25
lambda {
26
- c = Mysql2 ::Client . new ( :encoding => "utf8" )
26
+ c = Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] . merge ( :encoding => "utf8" ) )
27
27
} . should_not raise_error ( Mysql2 ::Error )
28
28
29
29
lambda {
30
- c = Mysql2 ::Client . new ( :encoding => "big5" )
30
+ c = Mysql2 ::Client . new ( DatabaseCredentials [ 'root' ] . merge ( :encoding => "big5" ) )
31
31
} . should_not raise_error ( Mysql2 ::Error )
32
32
end
33
33
end
@@ -416,10 +416,10 @@ def connect *args
416
416
it "#more_results? should work" do
417
417
@multi_client . query ( "select 1 as 'set_1'; select 2 as 'set_2'" )
418
418
@multi_client . more_results? . should == true
419
-
419
+
420
420
@multi_client . next_result
421
421
@multi_client . store_result
422
-
422
+
423
423
@multi_client . more_results? . should == false
424
424
end
425
425
end
You can’t perform that action at this time.
0 commit comments