* automated/ruby-mode-tests.el
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 27 Jan 2013 22:47:34 +0000 (02:47 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 27 Jan 2013 22:47:34 +0000 (02:47 +0400)
  (ruby-indent-spread-args-in-parens): New test.

test/ChangeLog
test/automated/ruby-mode-tests.el

index 7857000..505ac39 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-27  Dmitry Gutov  <dgutov@yandex.ru>
+
+       * automated/ruby-mode-tests.el
+       (ruby-indent-spread-args-in-parens): New test.
+
 2013-01-15  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * automated/advice-tests.el: Split up.  Add advice-test-preactivate.
index 4cc9c59..42c59a1 100644 (file)
@@ -237,6 +237,18 @@ VALUES-PLIST is a list with alternating index and value elements."
    |end
    |statement"))
 
+(ert-deftest ruby-indent-spread-args-in-parens ()
+  (let ((ruby-deep-indent-paren '(?\()))
+    (ruby-should-indent-buffer
+     "foo(1,
+     |    2,
+     |    3)
+     |"
+     "foo(1,
+     | 2,
+     |  3)
+     |")))
+
 (ert-deftest ruby-move-to-block-stops-at-indentation ()
   (ruby-with-temp-buffer "def f\nend"
     (beginning-of-line)