Skip to content

Commit 9e7918a

Browse files
committed
add reproducible test case for #277
1 parent 22a632a commit 9e7918a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spec/lib/rufo/formatter_source_specs/blocks.rb.spec

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,13 @@ map { _1**2 }
278278

279279
#~# EXPECTED
280280
map { _1 ** 2 }
281+
282+
#~# ORIGINAL command doend braces
283+
a.map &method(:foo)
284+
.map do |x| x + 1; end
285+
.map { _1 * 2 }
286+
287+
#~# EXPECTED
288+
a.map &method(:foo)
289+
.map do |x| x + 1; end
290+
.map { _1 * 2 }

0 commit comments

Comments
 (0)