<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>otariidae</author_name>
  <author_url>https://blog.hatena.ne.jp/otariidae/</author_url>
  <blog_title>STORES Product Blog</blog_title>
  <blog_url>https://product.st.inc/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>こんにちは。Webエンジニアをしているotariidaeです。 「ひとつのSTORES」としてプロダクトの統合を進めてきた結果、システム間通信の実装が増えています。多くのシステムをRuby on Railsで構築している STORES では、こうした機能をテストする際、外部リクエストの扱いとしてWebMockやRSpecのテストダブルが主な選択肢となります。STORES では可能な限り実際の挙動に近い形で検証したいというスタンスから、原則としてWebMockを採用しています。 STORES はWebMock多用企業です。 RSpecのマッチャーが効く WebMockの .with ではRSpe…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fproduct.st.inc%2Fentry%2F2026%2F02%2F27%2F172326&quot; title=&quot;WebMockでヘッダーにRSpecマッチャーは効かない - STORES Product Blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/stores-tech/20260227/20260227172330.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-02-27 17:23:26</published>
  <title>WebMockでヘッダーにRSpecマッチャーは効かない</title>
  <type>rich</type>
  <url>https://product.st.inc/entry/2026/02/27/172326</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
