aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAdam Sokolnicki2013-11-17 23:39:13 +0200
committerDmitry Gutov2013-11-17 23:39:13 +0200
commit56cd894e90949294d9578fd9fa45a179389f3306 (patch)
tree913c0ec7226d4df5d5acfa67a18313b0ab682e3a /test
parent96e78d1fb3fd5543c513d5a949c5d52654b6006a (diff)
downloademacs-56cd894e90949294d9578fd9fa45a179389f3306.tar.gz
emacs-56cd894e90949294d9578fd9fa45a179389f3306.zip
* lisp/progmodes/ruby-mode.el (ruby-toggle-block): Don't stop at
interpolation curlies. Fixes: debbugs:15914
Diffstat (limited to 'test')
-rw-r--r--test/automated/ruby-mode-tests.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/automated/ruby-mode-tests.el b/test/automated/ruby-mode-tests.el
index d5d262590b6..e84f55be93d 100644
--- a/test/automated/ruby-mode-tests.el
+++ b/test/automated/ruby-mode-tests.el
@@ -309,6 +309,12 @@ VALUES-PLIST is a list with alternating index and value elements."
309 (ruby-toggle-block) 309 (ruby-toggle-block)
310 (should (string= "foo do |b|\n b + 1\nend" (buffer-string))))) 310 (should (string= "foo do |b|\n b + 1\nend" (buffer-string)))))
311 311
312(ert-deftest ruby-toggle-block-with-interpolation ()
313 (ruby-with-temp-buffer "foo do\n \"#{bar}\"\nend"
314 (beginning-of-line)
315 (ruby-toggle-block)
316 (should (string= "foo { \"#{bar}\" }" (buffer-string)))))
317
312(ert-deftest ruby-recognize-symbols-starting-with-at-character () 318(ert-deftest ruby-recognize-symbols-starting-with-at-character ()
313 (ruby-assert-face ":@abc" 3 font-lock-constant-face)) 319 (ruby-assert-face ":@abc" 3 font-lock-constant-face))
314 320