<?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>Rails FactoryBot入門：RSpecで使うテストデータの作り方まとめ RSpec でテストを書くとき、テストデータを都度 User.create(name: &quot;...&quot;) で作るのは手間がかかります。FactoryBot を使うと、モデルのデフォルトデータを一箇所に定義して create(:user) の一行で呼び出せます。 FactoryBot とは テストデータのひな型（Factory）を定義するライブラリです。factory_bot_rails を使うと Rails / RSpec との連携が簡単にセットアップできます。 インストール・セットアップ Gemfile の :te…</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%2F07%2F07%2F005429&quot; title=&quot;Rails FactoryBot入門：RSpecで使うテストデータの作り方まとめ - 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-07-07 00:54:29</published>
  <title>Rails FactoryBot入門：RSpecで使うテストデータの作り方まとめ</title>
  <type>rich</type>
  <url>https://tech.fun-toy-life.com/entry/2026/07/07/005429</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
