<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takacc</author_name>
  <author_url>https://blog.hatena.ne.jp/takacc/</author_url>
  <blog_title>tusbasaのブログ</blog_title>
  <blog_url>https://takacc.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>インスタンス の定義はletで遅延評価にしておき、ネスト下のbeforeの中で必要なインスタンスを作成する方法。 letで定義すると無駄なインスタンス が作成されない。 let(:user) { create: user } let(:item) { create: item } context &quot;xxxxx&quot; do before do user item end it &quot;xxxx&quot; do end end</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakacc.hatenadiary.jp%2Fentry%2F2022%2F01%2F22%2F134459&quot; title=&quot;【rspec】インスタンス 生成のタイミング - tusbasaのブログ&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>2022-01-22 13:44:59</published>
  <title>【rspec】インスタンス 生成のタイミング</title>
  <type>rich</type>
  <url>https://takacc.hatenadiary.jp/entry/2022/01/22/134459</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
