From 9e7918a58d1888cbae2bee7d4166c729832018f8 Mon Sep 17 00:00:00 2001 From: Kazuki Nishikawa Date: Sat, 18 Mar 2023 17:04:45 +0900 Subject: [PATCH] add reproducible test case for #277 --- spec/lib/rufo/formatter_source_specs/blocks.rb.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/lib/rufo/formatter_source_specs/blocks.rb.spec b/spec/lib/rufo/formatter_source_specs/blocks.rb.spec index 3809090b..bf6973dd 100644 --- a/spec/lib/rufo/formatter_source_specs/blocks.rb.spec +++ b/spec/lib/rufo/formatter_source_specs/blocks.rb.spec @@ -278,3 +278,13 @@ map { _1**2 } #~# EXPECTED map { _1 ** 2 } + +#~# ORIGINAL command doend braces +a.map &method(:foo) + .map do |x| x + 1; end + .map { _1 * 2 } + +#~# EXPECTED +a.map &method(:foo) + .map do |x| x + 1; end + .map { _1 * 2 }