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]