<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koba04</author_name>
  <author_url>https://blog.hatena.ne.jp/koba04/</author_url>
  <blog_title>車輪を再発明 / koba04の日記</blog_title>
  <blog_url>https://koba04.hatenadiary.org/</blog_url>
  <categories>
    <anon>テスト</anon>
  </categories>
  <description>特にJavaScriptのテスト書いたりしてると、局所的にテストするためにsinon.jsのstubを多用するのですが、そうするとstub対象の仕様が変わった時にもテストがfailしなくなるので使い過ぎには注意しないとなぁと自分のテストコード見てて思いました。 コードにするとこんなイメージ # Viewの実装 TestView = Backbone.View.extend : testMethod: (args) -&gt; results = @model.veryComplexMethod args.value @render result: results[0] # テスト describe …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoba04.hatenadiary.org%2Fentry%2F20140125%2F1390580961&quot; title=&quot;テストでstubを使いすぎる問題 - 車輪を再発明 / koba04の日記&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-01-25 01:29:21</published>
  <title>テストでstubを使いすぎる問題</title>
  <type>rich</type>
  <url>https://koba04.hatenadiary.org/entry/20140125/1390580961</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
