Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add test for magit-get-boolean

  • Loading branch information...
commit dcfa91d5e5394313f66fa3f655aeb812d9ac59d5 1 parent cefe8de
Peter J Weisberg pjweisberg authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 tests/magit-tests.el
9 tests/magit-tests.el
View
@@ -74,3 +74,12 @@
(magit-status repo)
(magit-stage-all t)
(magit-tests-section-has-item-title dummy-filename '(staged)))))
+
+(ert-deftest magit-get-boolean ()
+ (with-temp-git-repo repo
+ (magit-run* '("git" "config" "core.safecrlf" "true"))
+ (should (magit-get-boolean "core.safecrlf"))
+ (should (magit-get-boolean "core" "safecrlf"))
+
+ (magit-run* '("git" "config" "core.safecrlf" "false"))
+ (should-not (magit-get-boolean "core.safecrlf"))))
Please sign in to comment.
Something went wrong with that request. Please try again.