I just tried to use Rails' time helper method travel in one of my feature specs: scenario 'published_at allows to set a publishing date in the future' do magazine_article.update_attribute(:published_at, Time.now + 1.day) expect { visit magazine_article_path(magazine_article.magazine_category, magazine_article) } .to raise_error(ActiveRecord::RecordNotFound) travel 2.days do visit magazine_article_
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く