From 5ec5d3167abbc33681cc23455bd247265f55526f Mon Sep 17 00:00:00 2001 From: Cyril Mougel Date: Mon, 27 May 2013 12:23:22 +0200 Subject: [PATCH] fix issue on spec introduce in previous commit. sorry --- spec/models/problem_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/problem_spec.rb b/spec/models/problem_spec.rb index 71005a2..3717ca5 100644 --- a/spec/models/problem_spec.rb +++ b/spec/models/problem_spec.rb @@ -57,10 +57,10 @@ describe Problem do problem.should_not be_nil notice1 = Fabricate(:notice, :err => err) - expect(problem.first_notice_at.to_i).to be_within(1).of(notice.created_at.to_i) + expect(problem.first_notice_at.to_i).to be_within(1).of(notice1.created_at.to_i) notice2 = Fabricate(:notice, :err => err) - expect(problem.first_notice_at.to_i).to be_within(1).of(notice.created_at.to_i) + expect(problem.first_notice_at.to_i).to be_within(1).of(notice1.created_at.to_i) end end -- libgit2 0.21.2