From df84dc2878e6d20dec349a7e6d575488b17273f5 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Wed, 6 Jan 2021 16:09:03 -0600 Subject: [PATCH] Fix weird spec issue --- spec/lib/update/update_recurring_donations_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/lib/update/update_recurring_donations_spec.rb b/spec/lib/update/update_recurring_donations_spec.rb index 3bf62a11..2c812494 100644 --- a/spec/lib/update/update_recurring_donations_spec.rb +++ b/spec/lib/update/update_recurring_donations_spec.rb @@ -175,9 +175,9 @@ describe UpdateRecurringDonations do } expectations[:result] = expectations[:recurring_donation].merge(nonprofit_name: nonprofit.name, card_name: card.name) - expectations[:result][:created_at] = expectations[:result]["start_date"].to_s - expectations[:result][:created_at] = expectations[:result]["created_at"].to_date.strftime('%Y-%m-%d %H:%M:%S') - expectations[:result][:updated_at] = expectations[:result]["updated_at"].to_date.strftime('%Y-%m-%d %H:%M:%S') + expectations[:result][:start_date] = expectations[:result]["start_date"].to_date.strftime("%Y-%m-%d") + expectations[:result][:created_at] = expectations[:result]["created_at"].to_date + expectations[:result][:updated_at] = expectations[:result]["updated_at"].to_date expect(result).to match expectations[:result]