aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2013-01-28 02:47:34 +0400
committerDmitry Gutov2013-01-28 02:47:34 +0400
commitb162502414d491f6893d962a49a88dfabac86fbf (patch)
tree526d689787a3cc7ada7be4a43abb44d508f8328a
parent499572e4d5ddd2ef4dd04e2f234205daed501b08 (diff)
downloademacs-b162502414d491f6893d962a49a88dfabac86fbf.tar.gz
emacs-b162502414d491f6893d962a49a88dfabac86fbf.zip
* automated/ruby-mode-tests.el
(ruby-indent-spread-args-in-parens): New test.
-rw-r--r--test/ChangeLog5
-rw-r--r--test/automated/ruby-mode-tests.el12
2 files changed, 17 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 7857000ba2f..505ac398e2f 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
12013-01-27 Dmitry Gutov <dgutov@yandex.ru>
2
3 * automated/ruby-mode-tests.el
4 (ruby-indent-spread-args-in-parens): New test.
5
12013-01-15 Stefan Monnier <monnier@iro.umontreal.ca> 62013-01-15 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * automated/advice-tests.el: Split up. Add advice-test-preactivate. 8 * automated/advice-tests.el: Split up. Add advice-test-preactivate.
diff --git a/test/automated/ruby-mode-tests.el b/test/automated/ruby-mode-tests.el
index 4cc9c590c20..42c59a1f3f0 100644
--- a/test/automated/ruby-mode-tests.el
+++ b/test/automated/ruby-mode-tests.el
@@ -237,6 +237,18 @@ VALUES-PLIST is a list with alternating index and value elements."
237 |end 237 |end
238 |statement")) 238 |statement"))
239 239
240(ert-deftest ruby-indent-spread-args-in-parens ()
241 (let ((ruby-deep-indent-paren '(?\()))
242 (ruby-should-indent-buffer
243 "foo(1,
244 | 2,
245 | 3)
246 |"
247 "foo(1,
248 | 2,
249 | 3)
250 |")))
251
240(ert-deftest ruby-move-to-block-stops-at-indentation () 252(ert-deftest ruby-move-to-block-stops-at-indentation ()
241 (ruby-with-temp-buffer "def f\nend" 253 (ruby-with-temp-buffer "def f\nend"
242 (beginning-of-line) 254 (beginning-of-line)