Roc*_*cky 1 rspec ruby-on-rails-3.1
我的模型将具有使用Date.current的逻辑,如下所示:
if(date_three && date_three != Date.current.yesterday)
...
end
Run Code Online (Sandbox Code Playgroud)
如何根据我的规格更改系统的当前日期,以便我可以使用不同的日期测试我的模型?
| 归档时间: |
|
| 查看次数: |
641 次 |
| 最近记录: |