Skip to content

Commit 235b55d

Browse files
committed
reset Encoding.default_internal before depending on it's behavior
1 parent 8900258 commit 235b55d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/mysql2/error_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353
error
5454
end
5555

56-
it "returns error messages as UTF-8" do
56+
it "returns error messages as UTF-8 by default" do
57+
Encoding.default_internal = nil
58+
5759
error.message.encoding.should eql(Encoding::UTF_8)
5860
error.message.valid_encoding?
5961

0 commit comments

Comments
 (0)