Skip to content

Commit b346938

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

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

spec/lib/rufo/formatter_source_specs/align_chained_calls.rb.spec

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,3 +268,13 @@ context "no sidecar/archive" do
268268
.and_return(Uploader::Result.new(success: true))
269269
end
270270
end
271+
272+
#~# ORIGINAL bug_277
273+
a.map &method(:foo)
274+
.map do |x| x + 1; end
275+
.map { _1 * 2 }
276+
277+
#~# EXPECTED
278+
a.map &method(:foo)
279+
.map do |x| x + 1; end
280+
.map { _1 * 2 }

0 commit comments

Comments
 (0)