summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gratz <Stromeko@Stromeko.DE>2012-12-07 19:50:01 +0100
committerAchim Gratz <Stromeko@Stromeko.DE>2012-12-07 19:50:01 +0100
commit29117be8b2d5f41164b0e2239350913146288bf0 (patch)
treeb051e8c17e499fbc28ba55e9f11eae0874fbf242
parent31052f1c912e866b2e651721bc3145686512cc69 (diff)
downloadorg-mode-29117be8b2d5f41164b0e2239350913146288bf0.tar.gz
Fix new test for clocktables
* testing/lisp/test-org-clock.el (test-org-clock/clocktable): The last test for clocktables introduced in commit 6642177 did not work if the test was run before 15:00 due to the end time being specified as "<now>" (which includes the current time of day and not just the date). The obvious "<today>" does also not work since it means 0:00 of the current day. The correct specification to use is "<tomorrow>", which is 0:00 the following day or equivalently the end of today, 24:00.
-rw-r--r--testing/lisp/test-org-clock.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/lisp/test-org-clock.el b/testing/lisp/test-org-clock.el
index e8d9b3c..2dc2150 100644
--- a/testing/lisp/test-org-clock.el
+++ b/testing/lisp/test-org-clock.el
@@ -145,7 +145,7 @@ contents. The clocktable doesn't appear in the buffer."
(goto-char (point-min))
(forward-line)
(test-org-clock-clocktable-contents-at-point
- ":tstart \"<yesterday>\" :tend \"<now>\" :indent nil"))))))
+ ":tstart \"<yesterday>\" :tend \"<tomorrow>\" :indent nil"))))))
(provide 'test-org-clock)