Time.nowにstub!を仕込むことで、Time.nowをフック。これはいいかんじ。

ihagihag のブックマーク 2010/08/02 19:29

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

RSpec'ing with Time.now · devroom.io

    I’m currently writing some RSpec tests that use Time.now. I want my model to calculate a duration and store the future time in the database. I’ve already specced the calculation of the duration, bu...

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう