{"blog_title":"chulip.org","width":"100%","provider_url":"https://hatena.blog","published":"2012-11-28 16:49:21","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchulip.org%2Fentry%2F20121128%2F1354088961\" title=\"RSpec\u3067Time.now\u3092\u8d77\u70b9\u306b\u3057\u305f\u30c6\u30b9\u30c8\u3092\u66f8\u304f\u6642Timecop\u3092\u4f7f\u3046\u3068\u4fbf\u5229\u304b\u3082 - chulip.org\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u305f\u3068\u3048\u3070\u73fe\u5728\u6642\u523b\u304b\u30893\u65e5\u524d\u3060\u3063\u305f\u3089\u3053\u3046\u306a\u308b\u3079\u304d\u307f\u305f\u3044\u306e\u3092\u30c6\u30b9\u30c8\u3092\u66f8\u3044\u3066\u3066 \u51e6\u7406\u306f3.days.ago\u3068\u304b\u3060\u3063\u305f\u5834\u5408\u306b\u666e\u901a\u306b\u66f8\u3044\u3066\u3042\u308b\u3068\u65e5\u6570\u304c\u305f\u3064\u3068\u30c6\u30b9\u30c8\u304c\u901a\u3089\u306a\u304f\u306a\u308b\u3002 https://github.com/travisjeffery/timecop \u305d\u3093\u306a\u6642\u306f\u3001Timecop\u3067\u30c6\u30b9\u30c8\u306e\u6642\u306f\u6642\u9593\u3092\u6307\u5b9a\u3057\u3066\u3042\u3052\u308c\u3070\u3088\u3044\u306e\u304b\u306a\u3002 describe 'hoge' do before do Timecop.freeze(Time.local(2012,11,25,12,0,0)) end subject { \u3046\u306b\u3083\u3046\u306b\u3083 } context '3 days ago' do it '\u3046\u306b\u3083\u3046\u306b\u3083' en\u2026","blog_url":"https://chulip.org/","title":"RSpec\u3067Time.now\u3092\u8d77\u70b9\u306b\u3057\u305f\u30c6\u30b9\u30c8\u3092\u66f8\u304f\u6642Timecop\u3092\u4f7f\u3046\u3068\u4fbf\u5229\u304b\u3082","type":"rich","url":"https://chulip.org/entry/20121128/1354088961","author_url":"https://blog.hatena.ne.jp/arcright/","height":"190","provider_name":"Hatena Blog","categories":["Ruby","RSpec"],"author_name":"arcright","version":"1.0","image_url":null}