Skip to content

Commit a89e05f

Browse files
committed
Add test
1 parent f784bae commit a89e05f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

spec/indent/quote_spec.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# frozen_string_literal: true
2+
3+
require 'spec_helper'
4+
5+
describe 'Indenting quote statements' do
6+
i <<~EOF
7+
defmacro foo do
8+
quote do
9+
unquote(foo)
10+
end
11+
end
12+
EOF
13+
14+
i <<~EOF
15+
defmacro foo do
16+
if 1 = 1 do
17+
quote do
18+
unquote(foo)
19+
end
20+
end
21+
end
22+
EOF
23+
end

0 commit comments

Comments
 (0)