<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>maeshima</author_name>
  <author_url>https://blog.hatena.ne.jp/maeshima/</author_url>
  <blog_title>maeshimaの日記</blog_title>
  <blog_url>https://maeshima.hateblo.jp/</blog_url>
  <categories>
    <anon>rails</anon>
    <anon>rspec</anon>
  </categories>
  <description>エラー発生時に500ページを表示するようなテストを書きたいときに、デフォルトだとrspecがエラーを横取りしてしまってうまくいかない。spec中に下記のように書いておくと横取りを防げるみたい。 rescue_action_in_public! # 昔の書き方。今はdepricated # controller.use_rails_error_handling!</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmaeshima.hateblo.jp%2Fentry%2F20100620%2F1277048671&quot; title=&quot;controllerでエラー発生時のテストをしたいとき - maeshimaの日記&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-06-20 00:44:31</published>
  <title>controllerでエラー発生時のテストをしたいとき</title>
  <type>rich</type>
  <url>https://maeshima.hateblo.jp/entry/20100620/1277048671</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
