diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2012-11-12 05:11:06 +0400 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2012-11-12 05:11:06 +0400 |
commit | d1e1e53dec51a9cb8aa9d6033d32428051ab7e85 (patch) | |
tree | 2acc4eaad376323cae41de08dcb66196858ce658 /test/automated/ruby-mode-tests.el | |
parent | a1d3e07e2896faadfd56b35a8c5f775353f39058 (diff) | |
download | emacs-d1e1e53dec51a9cb8aa9d6033d32428051ab7e85.tar.gz |
* lisp/progmodes/ruby-mode.el (ruby-move-to-block): When moving
backward, always stop at indentation. Reverts the change from
2012-08-12T22:06:56Z!monnier@iro.umontreal.ca.
Fixes: debbugs:12851
Diffstat (limited to 'test/automated/ruby-mode-tests.el')
-rw-r--r-- | test/automated/ruby-mode-tests.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/automated/ruby-mode-tests.el b/test/automated/ruby-mode-tests.el index ba3040577b1..8da0041e9a4 100644 --- a/test/automated/ruby-mode-tests.el +++ b/test/automated/ruby-mode-tests.el @@ -202,13 +202,13 @@ VALUES-PLIST is a list with alternating index and value elements." | end |")) -(ert-deftest ruby-move-to-block-stops-at-opening () +(ert-deftest ruby-move-to-block-stops-at-indentation () (with-temp-buffer (insert "def f\nend") (beginning-of-line) (ruby-mode) (ruby-move-to-block -1) - (should (looking-at "f$")))) + (should (looking-at "^def")))) (ert-deftest ruby-toggle-block-to-do-end () (with-temp-buffer |