Guest User

Untitled

a guest
Apr 26th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. 1)
  2. 'Accounting::income when there is at least one Account should calculate current balance' FAILED
  3. expected: 50000,
  4. got: 0 (using ==)
  5. ./spec/models/accounting/account_spec.rb:71:
  6.  
  7. 2)
  8. ActiveRecord::StatementInvalid in 'Accounting::income when there is at least one Account should calculate balance for period'
  9. SQLite3::SQLException: no such column: true: SELECT * FROM "accounting_records" WHERE ((accounting_records.committed = true)
  10. AND (accounting_records.time BETWEEN '2009-01-01' AND '2009-12-31')
  11. AND (debit_id = 3 OR credit_id = 3)) ORDER BY accounting_records.time
  12. /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/account.rb:83:in `committed_records_for_period'
  13. /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/account.rb:110:in `calculate_balance_for_period'
  14. ./spec/models/accounting/account_spec.rb:83:
  15.  
  16. 3)
  17. 'Accounting::LiveBalance when there is at least one Account should show balance sum' FAILED
  18. expected: 2000,
  19. got: 0 (using ==)
  20. ./spec/models/accounting/live_balance_spec.rb:21:
  21.  
  22. 4)
  23. ActiveRecord::StatementInvalid in 'Accounting::LiveBalance when there is at least one Account should include income records for a period'
  24. SQLite3::SQLException: no such column: true: SELECT * FROM "accounting_records" WHERE ((accounting_records.committed = true)
  25. AND (accounting_records.time BETWEEN '2009-01-01' AND '2009-12-31')
  26. AND (debit_id = 1 OR credit_id = 1)) ORDER BY accounting_records.time
  27. /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/account.rb:83:in `committed_records_for_period'
  28. /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/account.rb:110:in `calculate_balance_for_period'
  29. /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/live_profit_and_loss.rb:6:in `incomes'
  30. /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/live_profit_and_loss.rb:5:in `each'
  31. /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/live_profit_and_loss.rb:5:in `incomes'
  32. ./spec/models/accounting/live_profit_and_loss_spec.rb:14:
  33.  
  34. 5)
  35. ActiveRecord::StatementInvalid in 'Accounting::LiveBalance when there is at least one Account should exclude records outside of a period'
  36. SQLite3::SQLException: no such column: true: SELECT * FROM "accounting_records" WHERE ((accounting_records.committed = true)
  37. AND (accounting_records.time BETWEEN '2009-01-01' AND '2009-12-31')
  38. AND (debit_id = 1 OR credit_id = 1)) ORDER BY accounting_records.time
  39. /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/account.rb:83:in `committed_records_for_period'
  40. /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/account.rb:110:in `calculate_balance_for_period'
  41. /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/live_profit_and_loss.rb:6:in `incomes'
  42. /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/live_profit_and_loss.rb:5:in `each'
  43. /Users/konstantin/Workspace/autobahnerp/trunk/app/models/accounting/live_profit_and_loss.rb:5:in `incomes'
  44. ./spec/models/accounting/live_profit_and_loss_spec.rb:21:
  45.  
  46. Finished in 37.879487 seconds
  47.  
  48. 978 examples, 5 failures, 429 pending
Add Comment
Please, Sign In to add comment