<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jewel12</author_name>
  <author_url>https://blog.hatena.ne.jp/jewel12/</author_url>
  <blog_title>ミントフレーバー緑茶</blog_title>
  <blog_url>https://mint.hateblo.jp/</blog_url>
  <categories>
    <anon>RSpec</anon>
  </categories>
  <description>おいしいカスタム抹茶マッチャーの作り方。 @arr.should include_ex([1,2])二次元配列の要素を探す時に、上の例では @arr が [ [ 2,1],[ 3,4 ] ] のような時でも include が真となる Matcher が必要になった。 カスタムマッチャーは Spec::Matchers.define で定義できる。 Spec::Matchers.define :include_ex do |elem| match do |arr| arr.include?(elem.reverse) || arr.include?(elem) end end@arr が二次元…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmint.hateblo.jp%2Fentry%2F20101115%2Fp1&quot; title=&quot;カスタムマッチャーを作ってみるテスト - ミントフレーバー緑茶&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>2010-11-15 00:00:00</published>
  <title>カスタムマッチャーを作ってみるテスト</title>
  <type>rich</type>
  <url>https://mint.hateblo.jp/entry/20101115/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
