Commit 0e30ee84 authored by Stefan Kangas's avatar Stefan Kangas
Browse files

; Fix my last commit

* test/lisp/erc/erc-tests.el (erc-tests--update-modules): Bind
'text-quoting-style' to 'grave'.
(erc--update-modules/unknown): Simplify.
Suggested by Mattias Engdegård <mattias.engdegard@gmail.com>.
parent 9e002ef9
Pipeline #26875 failed with stage
in 82 minutes and 30 seconds
......@@ -2574,6 +2574,7 @@
(let* ((calls nil)
(custom-modes nil)
(on-load nil)
(text-quoting-style 'grave)
(get-calls (lambda () (prog1 (nreverse calls) (setq calls nil))))
......@@ -2615,9 +2616,7 @@
(let* ((erc-modules '(foo))
(obarray (obarray-make))
(err (should-error (erc--update-modules erc-modules))))
(should (string-match (rx bos (any "`") "foo" (any "'")
" is not a known ERC module" eos)
(cadr err)))
(should (equal (cadr err) "`foo' is not a known ERC module"))
(should (equal (funcall get-calls)
`((req . ,(intern-soft "erc-foo")))))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment