<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dev-actindi</author_name>
  <author_url>https://blog.hatena.ne.jp/dev-actindi/</author_url>
  <blog_title>アクトインディ開発者ブログ</blog_title>
  <blog_url>https://tech.actindi.net/</blog_url>
  <categories>
    <anon>advent-calender</anon>
    <anon>endo</anon>
  </categories>
  <description>この記事はアクトインディ Advent Calendar 2016 19日目になります。 どうぞよろしくお願いします。 今回はtimecopについて説明します。 timecopとは timecopはRubyのgemです。 過去の時間、未来の時間の日付で動作するようになります。 なお、現実では戻れないので、そこは注意が必要です。 簡単な使い方 簡単な使い方です。 Timecop.travel(2017, 1, 1) do Time.new end =&gt; 2017-01-01 09:00:00 +0900 メソッドのブロック内の時間が未来になっているかと思います。 これを利用して、テストでは過去の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.actindi.net%2F2016%2F12%2F19%2Ftimecop.html&quot; title=&quot;timecopのちょっとした使い方 - アクトインディ開発者ブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-12-19 00:00:00</published>
  <title>timecopのちょっとした使い方</title>
  <type>rich</type>
  <url>https://tech.actindi.net/2016/12/19/timecop.html</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
