<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>isoppu0919</author_name>
  <author_url>https://blog.hatena.ne.jp/isoppu0919/</author_url>
  <blog_title>トリマーがエンジニアになるブログ</blog_title>
  <blog_url>https://isoppu0919.hateblo.jp/</blog_url>
  <categories>
    <anon>学習記録</anon>
  </categories>
  <description>letは遅延評価をされる習性があり、変数として使用されてやっと中身が実行される。``` let(:user_article) { create(:article, user_id: user.id) } ・・・ expect(user.articles.first).to eq user_article ```上の記述の場合、eqの左側で`article`が使われているが`let`で変数化される前のものだが、eqの右側で変数が呼び出されるので別の値になる。しかし、ここで`let`の部分を`let!`にすると変数の呼び出し関係なしにcreateされているので、値は等しくなる。### `let!`…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fisoppu0919.hateblo.jp%2Fentry%2F2019%2F08%2F20%2F185145&quot; title=&quot;letとlet!の違い - トリマーがエンジニアになるブログ&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>2019-08-20 18:51:45</published>
  <title>letとlet!の違い</title>
  <type>rich</type>
  <url>https://isoppu0919.hateblo.jp/entry/2019/08/20/185145</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
