1
0
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:
Sylvain 2021-03-23 12:32:59 +01:00
parent 7099f1f317
commit 1749dea0e2
2 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class AccountingExportService
invoices = Invoice.where('created_at >= ? AND created_at <= ?', start_date, end_date).order('created_at ASC') 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 = invoices.where('total > 0') unless export_zeros
invoices.each do |i| invoices.each do |i|
puts "processing invoice #{i.id}..." puts "processing invoice #{i.id}..." unless Rails.env.test?
content << generate_rows(i) content << generate_rows(i)
end end

View File

@ -124,8 +124,8 @@ module Availabilities
'expected end_at = start_at + 4 slots of 90 minutes' 'expected end_at = start_at + 4 slots of 90 minutes'
# Check the recurrence # Check the recurrence
assert_equal (availability[:start_at].to_date + 2.weeks), assert_equal (availability[:start_at].to_datetime + 2.weeks).to_date,
availability[:end_date].to_date, availability[:end_date].to_datetime.utc.to_date,
'expected end_date = start_at + 2 weeks' 'expected end_date = start_at + 2 weeks'
end end
end end