From 55941a120608d3271c5f65e04c540332efda90bc Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Fri, 6 Mar 2020 10:16:58 +0000 Subject: [PATCH] Round time values to make spec green as in rails 4, for unknown reason, the timestamps are differing in some miliseconds --- spec/serializers/api/enterprise_shopfront_serializer_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/serializers/api/enterprise_shopfront_serializer_spec.rb b/spec/serializers/api/enterprise_shopfront_serializer_spec.rb index 5a2ef88123..b9115328e3 100644 --- a/spec/serializers/api/enterprise_shopfront_serializer_spec.rb +++ b/spec/serializers/api/enterprise_shopfront_serializer_spec.rb @@ -24,7 +24,7 @@ describe Api::EnterpriseShopfrontSerializer do end it "serializes next order cycle close time" do - expect(serializer.serializable_hash[:orders_close_at]).to match oc.orders_close_at + expect(serializer.serializable_hash[:orders_close_at].round).to match oc.orders_close_at.round end it "serializes shipping method types" do