<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anton0825</author_name>
  <author_url>https://blog.hatena.ne.jp/anton0825/</author_url>
  <blog_title>日々精進</blog_title>
  <blog_url>https://anton0825.hatenablog.com/</blog_url>
  <categories>
    <anon>IT</anon>
  </categories>
  <description>Railsのテスティングフレームワークについての解説。 xUnitと同様の記述方法で自動テストを作成できる。 xUnitを使ったことのある人は問題なく使えると思うけど、一番のポイントは出力するHTMLの内容をassert_selectだと思う。 構文が結構複雑でHTMLの要素を正しく選択して内容をテストできるようになるためには慣れが必要。 でも使いこなせればHTMLの内容を好きなだけテストできるのでかなり強力だと思う。 そして俺の環境ではh1要素を含むレスポンスに対して assert_select &quot;h1&quot;, :count =&gt; 1 を実行したところ、h1要素が見つからず失敗する。h1は確かに…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanton0825.hatenablog.com%2Fentry%2F20080520%2F1211956576&quot; title=&quot;RailsによるアジャイルWebアプリケーション開発 13章終了 - 日々精進&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>2008-05-20 15:36:16</published>
  <title>RailsによるアジャイルWebアプリケーション開発 13章終了</title>
  <type>rich</type>
  <url>https://anton0825.hatenablog.com/entry/20080520/1211956576</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
