diff options
| author | Dmitry Gutov | 2013-01-28 02:47:34 +0400 |
|---|---|---|
| committer | Dmitry Gutov | 2013-01-28 02:47:34 +0400 |
| commit | b162502414d491f6893d962a49a88dfabac86fbf (patch) | |
| tree | 526d689787a3cc7ada7be4a43abb44d508f8328a /test | |
| parent | 499572e4d5ddd2ef4dd04e2f234205daed501b08 (diff) | |
| download | emacs-b162502414d491f6893d962a49a88dfabac86fbf.tar.gz emacs-b162502414d491f6893d962a49a88dfabac86fbf.zip | |
* automated/ruby-mode-tests.el
(ruby-indent-spread-args-in-parens): New test.
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 5 | ||||
| -rw-r--r-- | test/automated/ruby-mode-tests.el | 12 |
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 @@ | |||
| 1 | 2013-01-27 Dmitry Gutov <dgutov@yandex.ru> | ||
| 2 | |||
| 3 | * automated/ruby-mode-tests.el | ||
| 4 | (ruby-indent-spread-args-in-parens): New test. | ||
| 5 | |||
| 1 | 2013-01-15 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2013-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) |