<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>plarail_hangout</author_name>
  <author_url>https://blog.hatena.ne.jp/plarail_hangout/</author_url>
  <blog_title>Engineering Tech Dojo</blog_title>
  <blog_url>https://tech.fun-toy-life.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Rails</anon>
  </categories>
  <description>RSpecのlet_it_be：test-profで高速化するDB生成の使い方 はじめに RSpecのテストでDBへのレコード生成が多くなると、let! の繰り返し実行がボトルネックになります。let_it_be は test-prof gemが提供するヘルパーで、同じexample group内でレコードを1回だけ生成してテストを高速化できます。 let! の何が遅いか let! は各 it の前に毎回評価されます。 RSpec.describe Post, type: :model do let!(:user) { create(:user) } # 各itの前に実行 let!(:cate…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.fun-toy-life.com%2Fentry%2F2026%2F05%2F29%2F225938&quot; title=&quot;RSpecのlet_it_be：test-profで高速化するDB生成の使い方 - Engineering Tech Dojo&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>2026-05-29 22:59:38</published>
  <title>RSpecのlet_it_be：test-profで高速化するDB生成の使い方</title>
  <type>rich</type>
  <url>https://tech.fun-toy-life.com/entry/2026/05/29/225938</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
