Skip to content

Commit da5bc2c

Browse files
author
Josh Bodah
committed
add failing spec for implicit rescues
1 parent c259418 commit da5bc2c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

spec/indent/function_spec.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper'
4+
5+
describe 'function indenting' do
6+
i <<~EOF
7+
def hello_world do
8+
hello
9+
rescue
10+
_ ->
11+
IO.puts("hello")
12+
end
13+
EOF
14+
end

0 commit comments

Comments
 (0)