mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Put timecop into safe mode and fix leaky Timecop.freeze
This commit is contained in:
@@ -33,9 +33,10 @@ module Spree
|
||||
end
|
||||
|
||||
it "defaults available_on to now" do
|
||||
Timecop.freeze
|
||||
product = Product.new
|
||||
product.available_on.should == Time.zone.now
|
||||
Timecop.freeze do
|
||||
product = Product.new
|
||||
product.available_on.should == Time.zone.now
|
||||
end
|
||||
end
|
||||
|
||||
describe "tax category" do
|
||||
|
||||
Reference in New Issue
Block a user