summaryrefslogtreecommitdiff
path: root/test/baseline
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-27 21:32:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-27 21:32:55 -0400
commitab433d28e08bbe23bbc75d333ed63343356e043a (patch)
tree273377e30b59a28de199e45fe66519ff8a387bf3 /test/baseline
parentaae134f69275e4f71ec70d893cdfd0b5839fef8e (diff)
downloadfork-ledger-ab433d28e08bbe23bbc75d333ed63343356e043a.tar.gz
fork-ledger-ab433d28e08bbe23bbc75d333ed63343356e043a.tar.bz2
fork-ledger-ab433d28e08bbe23bbc75d333ed63343356e043a.zip
Support a --now option, for testing purposes
This sets Ledger's notion of the "current time" to the given date. This makes it possible to have stable output from budgeting and forecasting reports, for the sake of baseline tests.
Diffstat (limited to 'test/baseline')
-rw-r--r--test/baseline/opt-forecast-while.test (renamed from test/baseline/opt-forecast-while.test.save)2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/baseline/opt-forecast-while.test.save b/test/baseline/opt-forecast-while.test
index 91e3a24f..e3f1c57a 100644
--- a/test/baseline/opt-forecast-while.test.save
+++ b/test/baseline/opt-forecast-while.test
@@ -1,4 +1,4 @@
-reg --forecast-while='total < $3500' books
+reg --now=2009/03/21 --forecast-while='total < $3500' books
<<<
~ monthly
Expenses:Books $10.00