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
This commit is contained in:
Luis Ramos
2020-04-04 16:39:23 +01:00
parent 1364a5e367
commit fa4b8832e9

View File

@@ -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 }