Commit 85cae52abefe4bf5c87c424ed07108b262dc1146
1 parent
b6fba9cc
Exists in
master
and in
1 other branch
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 | 104 | |
105 | 105 | it "should record the time when it was resolved" do |
106 | 106 | problem = Fabricate(:problem) |
107 | - expected_resolved_at = Time.now | |
107 | + expected_resolved_at = Time.zone.now | |
108 | 108 | Timecop.freeze(expected_resolved_at) do |
109 | 109 | problem.resolve! |
110 | 110 | end | ... | ... |