サクサク読めて、アプリ限定の機能も多数!
Time.nowにstub!を仕込むことで、Time.nowをフック。これはいいかんじ。
ihag のブックマーク 2010/08/02 19:29
RSpec'ing with Time.now · devroom.io[Ruby][RSpec] Time.nowにstub!を仕込むことで、Time.nowをフック。これはいいかんじ。2010/08/02 19:29
このブックマークにはスターがありません。 最初のスターをつけてみよう!
www.devroom.io2009/01/05
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...
5 人がブックマーク・3 件のコメント
\ コメントが サクサク読める アプリです /
Time.nowにstub!を仕込むことで、Time.nowをフック。これはいいかんじ。
このブックマークにはスターがありません。
最初のスターをつけてみよう!
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...
5 人がブックマーク・3 件のコメント
\ コメントが サクサク読める アプリです /