aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/progmodes
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/progmodes')
-rw-r--r--test/lisp/progmodes/ruby-mode-tests.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lisp/progmodes/ruby-mode-tests.el b/test/lisp/progmodes/ruby-mode-tests.el
index 23e13b94e6b..33fded5a59b 100644
--- a/test/lisp/progmodes/ruby-mode-tests.el
+++ b/test/lisp/progmodes/ruby-mode-tests.el
@@ -407,6 +407,13 @@ VALUES-PLIST is a list with alternating index and value elements."
407 (ruby-toggle-block) 407 (ruby-toggle-block)
408 (should (string= "foo { \"#{bar}\" }" (buffer-string))))) 408 (should (string= "foo { \"#{bar}\" }" (buffer-string)))))
409 409
410(ert-deftest ruby-toggle-block-to-brace-no-space ()
411 (ruby-with-temp-buffer "foo do |b|\n b + 2\nend"
412 (beginning-of-line)
413 (let (ruby-toggle-block-space-before-parameters)
414 (ruby-toggle-block))
415 (should (string= "foo {|b| b + 2 }" (buffer-string)))))
416
410(ert-deftest ruby-recognize-symbols-starting-with-at-character () 417(ert-deftest ruby-recognize-symbols-starting-with-at-character ()
411 (ruby-assert-face ":@abc" 3 font-lock-constant-face)) 418 (ruby-assert-face ":@abc" 3 font-lock-constant-face))
412 419