diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/progmodes/ruby-ts-mode-tests.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lisp/progmodes/ruby-ts-mode-tests.el b/test/lisp/progmodes/ruby-ts-mode-tests.el index d34c235e82b..18e3e60a04a 100644 --- a/test/lisp/progmodes/ruby-ts-mode-tests.el +++ b/test/lisp/progmodes/ruby-ts-mode-tests.el | |||
| @@ -110,6 +110,18 @@ The whitespace before and including \"|\" on each line is removed." | |||
| 110 | | 42 | 110 | | 42 |
| 111 | | end"))) | 111 | | end"))) |
| 112 | 112 | ||
| 113 | |||
| 114 | (ert-deftest ruby-ts-indent-call-no-args () | ||
| 115 | (skip-unless (treesit-ready-p 'ruby t)) | ||
| 116 | (ruby-ts-with-temp-buffer | ||
| 117 | "variable = foo( | ||
| 118 | |||
| 119 | )" | ||
| 120 | (goto-char (point-min)) | ||
| 121 | (forward-line 1) | ||
| 122 | (funcall indent-line-function) | ||
| 123 | (should (= (current-indentation) ruby-indent-level)))) | ||
| 124 | |||
| 113 | (ert-deftest ruby-ts-add-log-current-method-examples () | 125 | (ert-deftest ruby-ts-add-log-current-method-examples () |
| 114 | (skip-unless (treesit-ready-p 'ruby t)) | 126 | (skip-unless (treesit-ready-p 'ruby t)) |
| 115 | (let ((pairs '(("foo" . "#foo") | 127 | (let ((pairs '(("foo" . "#foo") |