Skip to content

Commit 774eca5

Browse files
committed
suppress rubocop
1 parent 01548f4 commit 774eca5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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)

spec/mysql2/statement_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
it "should handle bignum but in int64_t" do
6363
stmt = @client.prepare('SELECT ? AS max, ? AS min')
64-
int64_max = (1 << 63)-1
64+
int64_max = (1 << 63) - 1
6565
int64_min = -(1 << 63)
6666
result = stmt.execute(int64_max, int64_min)
6767
expect(result.to_a).to eq(['max' => int64_max, 'min' => int64_min])
@@ -71,7 +71,7 @@
7171
it "should handle bignum but beyond int64_t" do
7272
stmt = @client.prepare('SELECT ? AS max1, ? AS min1')
7373
int64_max1 = (1 << 63)
74-
int64_min1 = -(1 << 63)-2
74+
int64_min1 = -(1 << 63) - 2
7575
result = stmt.execute(int64_max1, int64_min1)
7676
expect(result.to_a).to eq(['max1' => -1, 'min1' => -1])
7777
@client.query 'DROP TABLE IF EXISTS mysql2_stmt_q'

0 commit comments

Comments
 (0)