Skip to content

Commit 0e5b2d6

Browse files
committed
Suppress rubocop's invalid UTF-8 literal warning
1 parent 6924e76 commit 0e5b2d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/mysql2/error_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
end
3535
end
3636

37-
let(:invalid_utf8) { "\xE5\xC6\x7D\x1F" }
37+
let(:invalid_utf8) { ["e5c67d1f"].pack('H*').force_encoding(Encoding::UTF_8) }
3838
let(:bad_err) do
3939
begin
4040
client.query(invalid_utf8)

0 commit comments

Comments
 (0)