Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1)
- 'Accounting::income when there is at least one Account should calculate current balance' FAILED
- expected: 50000,
- got: 0 (using ==)
- ./spec/models/accounting/account_spec.rb:71:
- 2)
- ActiveRecord::StatementInvalid in 'Accounting::income when there is at least one Account should calculate balance for period'
- SQLite3::SQLException: no such column: true: SELECT * FROM "accounting_records" WHERE ((accounting_records.committed = true)
- AND (accounting_records.time BETWEEN '2009-01-01' AND '2009-12-31')
- AND (debit_id = 3 OR credit_id = 3)) ORDER BY accounting_records.time
- /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/account.rb:83:in `committed_records_for_period'
- /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/account.rb:110:in `calculate_balance_for_period'
- ./spec/models/accounting/account_spec.rb:83:
- 3)
- 'Accounting::LiveBalance when there is at least one Account should show balance sum' FAILED
- expected: 2000,
- got: 0 (using ==)
- ./spec/models/accounting/live_balance_spec.rb:21:
- 4)
- ActiveRecord::StatementInvalid in 'Accounting::LiveBalance when there is at least one Account should include income records for a period'
- SQLite3::SQLException: no such column: true: SELECT * FROM "accounting_records" WHERE ((accounting_records.committed = true)
- AND (accounting_records.time BETWEEN '2009-01-01' AND '2009-12-31')
- AND (debit_id = 1 OR credit_id = 1)) ORDER BY accounting_records.time
- /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/account.rb:83:in `committed_records_for_period'
- /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/account.rb:110:in `calculate_balance_for_period'
- /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/live_profit_and_loss.rb:6:in `incomes'
- /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/live_profit_and_loss.rb:5:in `each'
- /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/live_profit_and_loss.rb:5:in `incomes'
- ./spec/models/accounting/live_profit_and_loss_spec.rb:14:
- 5)
- ActiveRecord::StatementInvalid in 'Accounting::LiveBalance when there is at least one Account should exclude records outside of a period'
- SQLite3::SQLException: no such column: true: SELECT * FROM "accounting_records" WHERE ((accounting_records.committed = true)
- AND (accounting_records.time BETWEEN '2009-01-01' AND '2009-12-31')
- AND (debit_id = 1 OR credit_id = 1)) ORDER BY accounting_records.time
- /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/account.rb:83:in `committed_records_for_period'
- /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/account.rb:110:in `calculate_balance_for_period'
- /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/live_profit_and_loss.rb:6:in `incomes'
- /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/live_profit_and_loss.rb:5:in `each'
- /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/live_profit_and_loss.rb:5:in `incomes'
- ./spec/models/accounting/live_profit_and_loss_spec.rb:21:
- Finished in 37.879487 seconds
- 978 examples, 5 failures, 429 pending
Add Comment
Please, Sign In to add comment