aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDmitry Gutov2012-11-12 05:11:06 +0400
committerDmitry Gutov2012-11-12 05:11:06 +0400
commitd1e1e53dec51a9cb8aa9d6033d32428051ab7e85 (patch)
tree2acc4eaad376323cae41de08dcb66196858ce658 /test
parenta1d3e07e2896faadfd56b35a8c5f775353f39058 (diff)
downloademacs-d1e1e53dec51a9cb8aa9d6033d32428051ab7e85.tar.gz
emacs-d1e1e53dec51a9cb8aa9d6033d32428051ab7e85.zip
* 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')
-rw-r--r--test/automated/ruby-mode-tests.el4
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."
202 | end 202 | end
203 |")) 203 |"))
204 204
205(ert-deftest ruby-move-to-block-stops-at-opening () 205(ert-deftest ruby-move-to-block-stops-at-indentation ()
206 (with-temp-buffer 206 (with-temp-buffer
207 (insert "def f\nend") 207 (insert "def f\nend")
208 (beginning-of-line) 208 (beginning-of-line)
209 (ruby-mode) 209 (ruby-mode)
210 (ruby-move-to-block -1) 210 (ruby-move-to-block -1)
211 (should (looking-at "f$")))) 211 (should (looking-at "^def"))))
212 212
213(ert-deftest ruby-toggle-block-to-do-end () 213(ert-deftest ruby-toggle-block-to-do-end ()
214 (with-temp-buffer 214 (with-temp-buffer