aboutsummaryrefslogtreecommitdiffstats
path: root/test/misc/test_ruby_mode.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/misc/test_ruby_mode.rb')
-rw-r--r--test/misc/test_ruby_mode.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/misc/test_ruby_mode.rb b/test/misc/test_ruby_mode.rb
index 64786b3408..6ac3f2e26a 100644
--- a/test/misc/test_ruby_mode.rb
+++ b/test/misc/test_ruby_mode.rb
@@ -132,5 +132,17 @@ class TestRubyMode
| end
|')
end
+
+ def test_array_literal
+ assert_indent('
+ |begin
+ | a[b]
+ |end
+ |', '
+ |begin
+ | a[b]
+ | end
+ |')
+ end
end
end if TestRubyMode::EMACS