<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuichi_katahira</author_name>
  <author_url>https://blog.hatena.ne.jp/yuichi_katahira/</author_url>
  <blog_title>仙台 Ruby Vim JavaScript フリーランスプログラマ</blog_title>
  <blog_url>https://katahirado.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>Rails3.2のヘルパーメソッドでcontent_tagなどで、タグを生成して返しているけど、メソッドの結果がエスケープされて、ActiveSupport::SafeBufferが返ってきてる。RSpecでテストを書いてみたんだけど、エスケープされてて、have_tagとかで出来ないから、itのブロック内で下記のように文字列で比較するように書いたんだけど、もっといい方法はないだろうか。 it &quot;should hogehoge&quot; do helper.nanigasi(2).should == &quot;&lt;span class=\&quot;nanigasi\&quot;&gt;2&lt;/span&gt;&quot; end ヘルパーメソッドもエン…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatahirado.hatenablog.com%2Fentry%2F20120731%2F1343693240&quot; title=&quot;Rails3.2で、RSpecを使ってhelperのテストを書いた場合 - 仙台 Ruby Vim JavaScript フリーランスプログラマ&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>2012-07-31 09:07:20</published>
  <title>Rails3.2で、RSpecを使ってhelperのテストを書いた場合</title>
  <type>rich</type>
  <url>https://katahirado.hatenablog.com/entry/20120731/1343693240</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
