<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>heleeen</author_name>
  <author_url>https://blog.hatena.ne.jp/heleeen/</author_url>
  <blog_title>helen's blog</blog_title>
  <blog_url>https://helen.hatenablog.com/</blog_url>
  <categories>
    <anon>rspec</anon>
    <anon>rails</anon>
  </categories>
  <description>データが入っているはずなのにrspecで何度実行しても ActiveRecord::RecordNotFoundが返ってくる罠にはまっていました状況としては、 ・DBにデータが入っているのはrails dbで確認済み ・irbでHoge.find(1)で取得できることは確認済み ・なのにspecで @hoge = Hoge.all しても &gt; を返してくる ・同じくspecで @hoge = Hoge.find(1) しても ActiveRecord::RecordNotFound という謎現象でした私「データはあるのにひろえません(&gt;_ 先生「なんだこれ...」 鬼軍曹「環境の問題じゃね？」…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhelen.hatenablog.com%2Fentry%2F2015%2F11%2F10%2F003456&quot; title=&quot;rspecの実行環境が違うことに気づかず数時間はめられた話 - helen&amp;#39;s blog&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>2015-11-10 00:34:56</published>
  <title>rspecの実行環境が違うことに気づかず数時間はめられた話</title>
  <type>rich</type>
  <url>https://helen.hatenablog.com/entry/2015/11/10/003456</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
