RSpec과의 시간 비교 문제 Ruby on Rails 4와 rspec-rails gem 2.14를 사용하고 있습니다. 내 객체의 updated_at경우 컨트롤러 작업 실행 후 현재 시간을 객체 속성 과 비교하고 싶지만 사양이 통과되지 않아 문제가 있습니다. 즉, 스펙 코드는 다음과 같습니다. it "updates updated_at attribute" do Timecop.freeze patch :update @article.reload expect(@article.updated_at).to eq(Time.now) end 위 사양을 실행하면 다음 오류가 발생합니다. Failure/Error: expect(@article.updated_at).to eq(Time.now) expected: 2013-12-0..