<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Sixeight</author_name>
  <author_url>https://blog.hatena.ne.jp/Sixeight/</author_url>
  <blog_title>ちなみに</blog_title>
  <blog_url>https://blog.nishimu.land/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>たとえば API の呼び出しを console からテストしたい場合、もろもろの準備などを毎回書くのは大変面倒である。API を呼び出して結果を取得するまでをヘルパーメソッドにしておくと楽になる。RSpec でいうところの Request Spec を書けば良いという話は置いておいておく。 module Hoge class Application &lt; Rails::Application # ... console do require &quot;console/hoge_helper&quot; Rails::ConsoleMethods.include Console::HogeHelper TOPLEV…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.nishimu.land%2Fentry%2F2014%2F05%2F13%2F184505&quot; title=&quot;Rails console  に任意のヘルパーメソッドを追加する - ちなみに&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>2014-05-13 18:45:05</published>
  <title>Rails console  に任意のヘルパーメソッドを追加する</title>
  <type>rich</type>
  <url>https://blog.nishimu.land/entry/2014/05/13/184505</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
