]> git.eshelyaron.com Git - emacs.git/commitdiff
* 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 7857000ba2f203bfe3a7b53fb648a10bcfdbb6de..505ac398e2fe98e280d912adf1594ad6aa53fa59 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 4cc9c590c201959b9bd85a1ee9687c9bd273f469..42c59a1f3f0629e736c090547aece0de28d728b3 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)