Commit 85cae52abefe4bf5c87c424ed07108b262dc1146

Authored by Cyril Mougel
1 parent b6fba9cc
Exists in master and in 1 other branch production

Fix spec because now the spec use TimeZone too in Mongoid

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
spec/models/problem_spec.rb
@@ -104,7 +104,7 @@ describe Problem do @@ -104,7 +104,7 @@ describe Problem do
104 104
105 it "should record the time when it was resolved" do 105 it "should record the time when it was resolved" do
106 problem = Fabricate(:problem) 106 problem = Fabricate(:problem)
107 - expected_resolved_at = Time.now 107 + expected_resolved_at = Time.zone.now
108 Timecop.freeze(expected_resolved_at) do 108 Timecop.freeze(expected_resolved_at) do
109 problem.resolve! 109 problem.resolve!
110 end 110 end