aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp/progmodes/ruby-mode-tests.el
diff options
context:
space:
mode:
authorGlenn Morris2018-03-09 15:04:59 -0500
committerGlenn Morris2018-03-09 15:04:59 -0500
commit94a59a6d8377db809b395175f7dbb81e8325dcf2 (patch)
treeba16a7bca9fe2fe5264deabeaea611e876e9522c /test/lisp/progmodes/ruby-mode-tests.el
parent80e145fc96765cc0a0f48ae2425294c8c92bce56 (diff)
downloademacs-94a59a6d8377db809b395175f7dbb81e8325dcf2.tar.gz
emacs-94a59a6d8377db809b395175f7dbb81e8325dcf2.zip
Quieten compilation of some test/lisp files
* test/lisp/dired-tests.el (dired-test-bug27243-02) (dired-test-bug27243-03, dired-test-bug27899) (dired-test-with-temp-dirs): Remove unused local variables. * test/lisp/hi-lock-tests.el (hi-lock-bug26666) (hi-lock-test-set-pattern): Mark unused arguments. * test/lisp/ses-tests.el (ses-tests-renamed-cells-row-insertion): Remove unused global "ses-tests-trigger". * test/lisp/simple-tests.el (line-number-at-pos-when-passing-point): Remove unused local "pos". * test/lisp/emacs-lisp/benchmark-tests.el (benchmark-tests): Pacify compiler. * test/lisp/emacs-lisp/package-tests.el (package-test-signed): Replace obsolete function epg-configuration. * test/lisp/ls-lisp-tests.el: * test/lisp/eshell/em-ls-tests.el: Require dired. * test/lisp/progmodes/ruby-mode-tests.el (ruby-forward-sexp-skips-method-calls-with-keyword-names): * test/lisp/vc/diff-mode-tests.el (diff-mode-test-ignore-trailing-dashes): Replace interactive funcs.
Diffstat (limited to 'test/lisp/progmodes/ruby-mode-tests.el')
-rw-r--r--test/lisp/progmodes/ruby-mode-tests.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lisp/progmodes/ruby-mode-tests.el b/test/lisp/progmodes/ruby-mode-tests.el
index b16698fba11..72d83affaef 100644
--- a/test/lisp/progmodes/ruby-mode-tests.el
+++ b/test/lisp/progmodes/ruby-mode-tests.el
@@ -705,13 +705,15 @@ VALUES-PLIST is a list with alternating index and value elements."
705 705
706(ert-deftest ruby-forward-sexp-skips-method-calls-with-keyword-names () 706(ert-deftest ruby-forward-sexp-skips-method-calls-with-keyword-names ()
707 (ruby-with-temp-buffer ruby-sexp-test-example 707 (ruby-with-temp-buffer ruby-sexp-test-example
708 (goto-line 2) 708 (goto-char (point-min))
709 (forward-line 1)
709 (ruby-forward-sexp) 710 (ruby-forward-sexp)
710 (should (= 8 (line-number-at-pos))))) 711 (should (= 8 (line-number-at-pos)))))
711 712
712(ert-deftest ruby-backward-sexp-skips-method-calls-with-keyword-names () 713(ert-deftest ruby-backward-sexp-skips-method-calls-with-keyword-names ()
713 (ruby-with-temp-buffer ruby-sexp-test-example 714 (ruby-with-temp-buffer ruby-sexp-test-example
714 (goto-line 8) 715 (goto-char (point-min))
716 (forward-line 7)
715 (end-of-line) 717 (end-of-line)
716 (ruby-backward-sexp) 718 (ruby-backward-sexp)
717 (should (= 2 (line-number-at-pos))))) 719 (should (= 2 (line-number-at-pos)))))