1
Heroku說Ruby 2.0是ready for production。好的,我會更新我的應用程序。但我的測試中斷了。這一個開始失敗:Ruby 2.0突然改變?日期比較
a_date.should == the_same_date
日期相同。除了在Ruby 1.9.3下通過相同的測試之外,我怎麼知道?這通過2.0:
a_date.to_i.should == the_same_date.to_i
這是Ruby 2.0中的錯誤?我無法找到任何有關打破日期平等的更改。
UPDATE
下面是實際的測試輸出:
Failure/Error: target.should == @now
expected: Mon, 24 Jun 2013 15:40:52 UTC +00:00
got: Mon, 24 Jun 2013 15:40:52 UTC +00:00 (using ==)