Fix broken test due to

GitHub-reference: https://github.com/jwiegley/use-package/issues/850
This commit is contained in:
Jimmy Yuen Ho Wong 2020-07-08 04:57:39 +01:00 committed by Ted Zlatanov
parent 3e96664ffe
commit d3f847eaee
2 changed files with 6 additions and 2 deletions

View file

@ -1563,7 +1563,7 @@ this file. Usage:
:load-path Add to the `load-path' before attempting to load the package.
:diminish Support for diminish.el (if installed).
:delight Support for delight.el (if installed).
:custom Call `customize-set-variable' with each variable definition.
:custom Call `custom-set' or `set-default' with each variable definition.
:custom-face Call `customize-set-faces' with each face definition.
:ensure Loads the package using package.el if necessary.
:pin Pin the package to an archive."

View file

@ -1133,7 +1133,11 @@
(match-expansion
(use-package foo :custom (foo bar))
`(progn
(customize-set-variable 'foo bar "Customized with use-package foo")
(funcall
(or
(get 'foo 'custom-set)
(function set-default))
'foo bar)
(require 'foo nil nil))))
(ert-deftest use-package-test/:custom-face-1 ()