<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sue445</author_name>
  <author_url>https://blog.hatena.ne.jp/sue445/</author_url>
  <blog_title>くりにっき</blog_title>
  <blog_url>https://sue445.hatenablog.com/</blog_url>
  <categories>
    <anon>rspec</anon>
    <anon>ruby</anon>
  </categories>
  <description>仕事中にRSpecでちょっとした発見があったので忘れないうちにブログに残しておきます spec describe String do it &quot;match with be_include&quot; do &quot;cure peace&quot;.should be_include &quot;azatoi&quot; end it &quot;match with include&quot; do &quot;cure peace&quot;.should include &quot;azatoi&quot; end end この2つは両方とも特定の文字列が含まれるかどうかのテストですが、エラーメッセージが全く違います be_includeのテスト結果 it &quot;match with be_incl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsue445.hatenablog.com%2Fentry%2F2013%2F03%2F09%2F005349&quot; title=&quot;RSpecでstringの比較をする時はbe_includeではなくincludeを使った方がいい - くりにっき&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>http://ecx.images-amazon.com/images/I/51-3T735zLL.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-03-09 00:53:49</published>
  <title>RSpecでstringの比較をする時はbe_includeではなくincludeを使った方がいい</title>
  <type>rich</type>
  <url>https://sue445.hatenablog.com/entry/2013/03/09/005349</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
