<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>torihazi</author_name>
  <author_url>https://blog.hatena.ne.jp/torihazi/</author_url>
  <blog_title>Torihaji's Growth Diary</blog_title>
  <blog_url>https://torihazi.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>be_xxx — predicate matcher オブジェクトの xxx? メソッドを呼び出して、その戻り値が truthy かを検証 # user.general_role? を呼び出す expect(user).to be_general_role user.valid? を呼び出す expect(user).to be_valid user.persisted? を呼び出す expect(user).to be_persisted be_ の後の部分に ? を付けたメソッドが自動的に呼ばれる仕組み be 単体 — truthy/falsy 判定 expect(value).to be…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftorihazi.hateblo.jp%2Fentry%2F2026%2F02%2F16%2F170440&quot; title=&quot;rails の rspec be matcherについて - Torihaji&amp;#39;s Growth Diary&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-02-16 17:04:40</published>
  <title>rails の rspec be matcherについて</title>
  <type>rich</type>
  <url>https://torihazi.hateblo.jp/entry/2026/02/16/170440</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
