Skip to content

Commit

Permalink
do not show lighter if there are no tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Barrett committed Apr 21, 2013
1 parent fede759 commit 83aaa19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ert-modeline.el
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
"Select a circle corresponding to the type and number of RESULTS."
(let ((failing (ert--stats-failed-unexpected results)))
(cond
;; No tests are enabled.
;; No tests are enabled - do not show lighter.
((>= 0 (length (ert--stats-tests results)))
(propertize " [ert]" 'font-lock-face 'ertml-warning-face))
"")
;; Indicate number of failing tests.
((< 0 failing)
(propertize (format " [%s]" failing) 'font-lock-face 'ertml-failing-face))
Expand Down

0 comments on commit 83aaa19

Please sign in to comment.