Skip to content

Commit bb2de50

Browse files
authored
Merge pull request #765 from nurse/suppress-rubocop
Suppress rubocop's invalid UTF-8 literal warning
2 parents 6924e76 + 0e5b2d6 commit bb2de50

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)