mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-27 04:13:11 +03:00
Fix failing hledger-web test
This test appeared to have failed after adding source positions to generated transactions. This is because the generated transaction id for web pages appears to be dependent on whether the transaction has an associated source file. Because it has one associated now, the id was updated to be 'transaction-2-1' for instance, instead of 'transaction-0-1' as it would have been before. The fix is to change the test.
This commit is contained in:
parent
9443fe0e0d
commit
97f15eac03
@ -97,5 +97,5 @@ hledgerWebTest = do
|
|||||||
yit "serves a journal page showing forecasted transactions" $ do
|
yit "serves a journal page showing forecasted transactions" $ do
|
||||||
get JournalR
|
get JournalR
|
||||||
statusIs 200
|
statusIs 200
|
||||||
bodyContains "id=\"transaction-0-1\"" -- 0 indicates a fileless (forecasted) txn
|
bodyContains "id=\"transaction-2-1\""
|
||||||
bodyContains "id=\"transaction-0-2\"" -- etc.
|
bodyContains "id=\"transaction-2-2\""
|
||||||
|
Loading…
Reference in New Issue
Block a user