<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thinkAmi</author_name>
  <author_url>https://blog.hatena.ne.jp/thinkAmi/</author_url>
  <blog_title>メモ的な思考的な</blog_title>
  <blog_url>https://thinkami.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Rails</anon>
    <anon>RSpec</anon>
  </categories>
  <description>外部サイトへのアクセスが発生する、 Railsアプリがあるとします。 このRailsアプリに対するテストコードでは、外部サイトへのアクセスが発生しないよう、 WebMock を使うのが便利です。 bblimke/webmock: Library for stubbing and setting expectations on HTTP requests in Ruby. ただ、 stub_request(:get, 'https://example.com').to_return(status: 200) のようにモックしたところ WebMock::NetConnectNotAllowedEr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthinkami.hatenablog.com%2Fentry%2F2021%2F11%2F23%2F230933&quot; title=&quot;Ruby の WebMock では、クエリ文字列も考慮して stub_request する - メモ的な思考的な&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>2021-11-23 23:09:33</published>
  <title>Ruby の WebMock では、クエリ文字列も考慮して stub_request する</title>
  <type>rich</type>
  <url>https://thinkami.hatenablog.com/entry/2021/11/23/230933</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
