Skip to content

Commit

Permalink
add reproducible test case for #277
Browse files Browse the repository at this point in the history
  • Loading branch information
kzkn committed Mar 18, 2023
1 parent 22a632a commit 9e7918a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/lib/rufo/formatter_source_specs/blocks.rb.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

0 comments on commit 9e7918a

Please sign in to comment.