mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-20 09:52:19 +01:00
fix tests
This commit is contained in:
parent
7099f1f317
commit
1749dea0e2
@ -33,7 +33,7 @@ class AccountingExportService
|
||||
invoices = Invoice.where('created_at >= ? AND created_at <= ?', start_date, end_date).order('created_at ASC')
|
||||
invoices = invoices.where('total > 0') unless export_zeros
|
||||
invoices.each do |i|
|
||||
puts "processing invoice #{i.id}..."
|
||||
puts "processing invoice #{i.id}..." unless Rails.env.test?
|
||||
content << generate_rows(i)
|
||||
end
|
||||
|
||||
|
@ -124,8 +124,8 @@ module Availabilities
|
||||
'expected end_at = start_at + 4 slots of 90 minutes'
|
||||
|
||||
# Check the recurrence
|
||||
assert_equal (availability[:start_at].to_date + 2.weeks),
|
||||
availability[:end_date].to_date,
|
||||
assert_equal (availability[:start_at].to_datetime + 2.weeks).to_date,
|
||||
availability[:end_date].to_datetime.utc.to_date,
|
||||
'expected end_date = start_at + 2 weeks'
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user