diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/automated/ruby-mode-tests.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/automated/ruby-mode-tests.el b/test/automated/ruby-mode-tests.el index a18899df02f..02582e8ad2d 100644 --- a/test/automated/ruby-mode-tests.el +++ b/test/automated/ruby-mode-tests.el | |||
| @@ -546,6 +546,17 @@ VALUES-PLIST is a list with alternating index and value elements." | |||
| 546 | (ruby-beginning-of-block)) | 546 | (ruby-beginning-of-block)) |
| 547 | (should (= 1 (line-number-at-pos))))) | 547 | (should (= 1 (line-number-at-pos))))) |
| 548 | 548 | ||
| 549 | (ert-deftest ruby-move-to-block-moves-from-else-to-if () | ||
| 550 | (ruby-with-temp-buffer (ruby-test-string | ||
| 551 | "if true | ||
| 552 | | nested_block do | ||
| 553 | | end | ||
| 554 | |else | ||
| 555 | |end") | ||
| 556 | (goto-line 4) | ||
| 557 | (ruby-beginning-of-block) | ||
| 558 | (should (= 1 (line-number-at-pos))))) | ||
| 559 | |||
| 549 | (ert-deftest ruby-beginning-of-defun-does-not-fold-case () | 560 | (ert-deftest ruby-beginning-of-defun-does-not-fold-case () |
| 550 | (ruby-with-temp-buffer | 561 | (ruby-with-temp-buffer |
| 551 | (ruby-test-string | 562 | (ruby-test-string |