aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2019-07-24 00:39:22 +0100
committerWilfred Hughes <me@wilfred.me.uk>2019-07-24 00:39:22 +0100
commit00c5c696521dd361e540af8a1fb5c529527ab5cb (patch)
tree99554bfac19a06ba19ea14d32fa30b9d3ca74ae0 /test
parent866d5daecb168c0b62c91ccf5dec833d5cdcac5c (diff)
Report package/emacs version for custom variables
Fixes #207
Diffstat (limited to 'test')
-rw-r--r--test/helpful-unit-test.el13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/helpful-unit-test.el b/test/helpful-unit-test.el
index d1d4840..d39ff2d 100644
--- a/test/helpful-unit-test.el
+++ b/test/helpful-unit-test.el
@@ -954,7 +954,8 @@ find the source code."
(defcustom helpful-test-custom-var 123
"I am an example custom variable."
:type 'number
- :group 'helpful)
+ :group 'helpful
+ :package-version '(helpful . "1.2.3"))
;; Ensure the current value differs from the original value.
(setq helpful-test-custom-var 456)
@@ -964,3 +965,13 @@ find the source code."
(helpful-variable 'helpful-test-custom-var)
(should
(s-contains-p "Original Value\n123" (buffer-string))))
+
+(ert-deftest helpful--package-version ()
+ "Report when a variable was added"
+ (helpful-variable 'helpful-test-custom-var)
+ (should
+ (s-contains-p
+ (s-word-wrap
+ 70
+ "This variable was added, or its default value changed, in helpful version 1.2.3.")
+ (buffer-string))))