Skip to content
This repository was archived by the owner on Apr 27, 2018. It is now read-only.

Commit 76384e1

Browse files
committed
Tests for string interpolation problem
1 parent b76efd1 commit 76384e1

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

spec/indent/continuations_spec.rb

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,32 @@
6868
end
6969

7070
specify "string interpolation" do
71-
# See https://github.com/vim-ruby/vim-ruby/issues/93 for details
71+
# For details, see:
72+
#
73+
# https://github.com/vim-ruby/vim-ruby/issues/93
74+
# https://github.com/vim-ruby/vim-ruby/issues/160
75+
#
7276
assert_correct_indenting <<-EOF
7377
command = %|\#{file}|
7478
settings.log.info("Returning: \#{command}")
7579
EOF
80+
81+
assert_correct_indenting <<-EOF
82+
{
83+
thing: "[\#{}]",
84+
thong: "b"
85+
}
86+
EOF
87+
88+
assert_correct_indenting <<-EOF
89+
{
90+
a: "(\#{a})",
91+
b: "(\#{b})",
92+
c: "(c)",
93+
d: "(d)",
94+
e: "(e)",
95+
}
96+
EOF
7697
end
7798

7899
specify "closing bracket not on its own line" do

0 commit comments

Comments
 (0)