From b2a28dd78c395672068fedb068fcdb3090f1445f Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Thu, 25 Oct 2018 12:33:55 -0500 Subject: [PATCH] Fix weird formatting bug in test --- spec/lib/update/update_donation_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/lib/update/update_donation_spec.rb b/spec/lib/update/update_donation_spec.rb index 224c3834..16ab3eba 100644 --- a/spec/lib/update/update_donation_spec.rb +++ b/spec/lib/update/update_donation_spec.rb @@ -263,7 +263,7 @@ describe UpdateDonation do expected_donation = donation.attributes.merge({ - date: new_date.to_time_in_current_zone, + date: new_date, amount: new_amount, designation: new_designation, @@ -279,7 +279,7 @@ describe UpdateDonation do donation.reload expect(donation.attributes).to eq expected_donation - expected_p1 = payment.attributes.merge({towards: new_dedication, updated_at: Time.now, date: new_date, gross_amount: new_amount, fee_total: new_fee, net_amount: new_amount-new_fee}).with_indifferent_access + expected_p1 = payment.attributes.merge({towards: new_designation, updated_at: Time.now, date: new_date, gross_amount: new_amount, fee_total: new_fee, net_amount: new_amount-new_fee}).with_indifferent_access payment.reload expect(payment.attributes).to eq expected_p1 @@ -367,7 +367,7 @@ describe UpdateDonation do donation.reload expect(donation.attributes).to eq expected_donation - expected_p1 = payment.attributes.merge({towards: '', updated_at: Time.now, date: new_date, gross_amount: new_amount, fee_total: new_fee, net_amount: new_amount-new_fee}).with_indifferent_access + expected_p1 = payment.attributes.merge({towards: '', updated_at: Time.now, date: new_date.to_time_in_current_zone, gross_amount: new_amount, fee_total: new_fee, net_amount: new_amount-new_fee}).with_indifferent_access payment.reload expect(payment.attributes).to eq expected_p1