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