From 173bbaf3187433d27a916cc64806ed8ef7ae5dc5 Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Tue, 31 Oct 2023 20:32:41 +0100 Subject: [PATCH] Disable Style/SingleLineDoEndBlock for test of single line do..end block Correcting this offense makes no sense in this case since the point of this test is to test a single-line do..end block. --- test/lambda_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/lambda_test.rb b/test/lambda_test.rb index 3486a7b..f4bbf00 100644 --- a/test/lambda_test.rb +++ b/test/lambda_test.rb @@ -64,7 +64,9 @@ def test_block_braces_one_line end def test_block_do_end_one_line + # rubocop:disable Style/SingleLineDoEndBlock block = return_block do |x, y| x - y end + # rubocop:enable Style/SingleLineDoEndBlock expected = binop_block(:return_block, :-)