<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hkob</author_name>
  <author_url>https://blog.hatena.ne.jp/hkob/</author_url>
  <blog_title>hkob’s blog</blog_title>
  <blog_url>https://hkob.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>Blogmas</anon>
  </categories>
  <description>この記事では、Rails Tipsの20回目として、request_specに使うshared_exampleの紹介が行われています。記事では、レスポンスコードの確認方法について詳しく説明されています。この確認方法は、リクエストのレスポンスコードが指定された数値であることを検証するもので、この記事では、成功を示す200というコードの確認方法が解説されています。また、定型処理が多いrequest_specについても触れられており、テストを先に作成し、それが通るように処理を書くことで実装漏れを防ぐことができると述べられています。(要約 by Notion AI)</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhkob.hatenablog.com%2Fentry%2F2023%2F12%2F20%2F050000&quot; title=&quot;レスポンスコード確認 shared_example : 小林研 Rails Tips (20) - hkob’s 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-12-20 05:00:00</published>
  <title>レスポンスコード確認 shared_example : 小林研 Rails Tips (20)</title>
  <type>rich</type>
  <url>https://hkob.hatenablog.com/entry/2023/12/20/050000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
