From 85cae52abefe4bf5c87c424ed07108b262dc1146 Mon Sep 17 00:00:00 2001 From: Cyril Mougel Date: Fri, 21 Jun 2013 12:07:51 +0200 Subject: [PATCH] Fix spec because now the spec use TimeZone too in Mongoid --- spec/models/problem_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/problem_spec.rb b/spec/models/problem_spec.rb index b7732dd..cd483f6 100644 --- a/spec/models/problem_spec.rb +++ b/spec/models/problem_spec.rb @@ -104,7 +104,7 @@ describe Problem do it "should record the time when it was resolved" do problem = Fabricate(:problem) - expected_resolved_at = Time.now + expected_resolved_at = Time.zone.now Timecop.freeze(expected_resolved_at) do problem.resolve! end -- libgit2 0.21.2