From fa4b8832e90c39ad5d42e41c8ac6d1cbe51c3dd8 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Sat, 4 Apr 2020 16:39:23 +0100 Subject: [PATCH] Fix timezone mix up in specs Converting times with timezones to string was ignoring the timezone and this making the start date be before the end date in this spec --- .../reports/enterprise_fee_summary/parameters_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/parameters_spec.rb b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/parameters_spec.rb index 6fd3c8b9a7..130401cb34 100644 --- a/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/parameters_spec.rb +++ b/engines/order_management/spec/services/order_management/reports/enterprise_fee_summary/parameters_spec.rb @@ -39,7 +39,7 @@ describe OrderManagement::Reports::EnterpriseFeeSummary::Parameters do end describe "requiring start_at to be before end_at" do - let(:now) { Time.zone.now } + let(:now) { Time.zone.now.utc } it "adds error when start_at is after end_at" do allow(subject).to receive(:start_at) { now.to_s }