Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tests for string interpolation problem

  • Loading branch information...
commit 76384e121dde94369e4357ab58d897f1b7c23cec 1 parent b76efd1
@AndrewRadev AndrewRadev authored
Showing with 22 additions and 1 deletion.
  1. +22 −1 spec/indent/continuations_spec.rb
View
23 spec/indent/continuations_spec.rb
@@ -68,11 +68,32 @@
end
specify "string interpolation" do
- # See https://github.com/vim-ruby/vim-ruby/issues/93 for details
+ # For details, see:
+ #
+ # https://github.com/vim-ruby/vim-ruby/issues/93
+ # https://github.com/vim-ruby/vim-ruby/issues/160
+ #
assert_correct_indenting <<-EOF
command = %|\#{file}|
settings.log.info("Returning: \#{command}")
EOF
+
+ assert_correct_indenting <<-EOF
+ {
+ thing: "[\#{}]",
+ thong: "b"
+ }
+ EOF
+
+ assert_correct_indenting <<-EOF
+ {
+ a: "(\#{a})",
+ b: "(\#{b})",
+ c: "(c)",
+ d: "(d)",
+ e: "(e)",
+ }
+ EOF
end
specify "closing bracket not on its own line" do
Please sign in to comment.
Something went wrong with that request. Please try again.