mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Round time values to make spec green as in rails 4, for unknown reason, the timestamps are differing in some miliseconds
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user