<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rubynews</author_name>
  <author_url>https://blog.hatena.ne.jp/rubynews/</author_url>
  <blog_title>RubyNews</blog_title>
  <blog_url>https://rubynews.hatenadiary.org/</blog_url>
  <categories>
    <anon>NEWS</anon>
  </categories>
  <description>Mochaが楽しそう - Slow Dance スタブはただ偽装するだけ、モックは引数や呼ばれた回数等のチェックを行う。 チェック機能がほしいときにモックを使って、そうじゃなけりゃスタブを使う。 require 'test/unit' require 'rubygems' require 'mocha' class TestMock &lt; Test::Unit::TestCase def test_stub o = stub # foo(*args) -&gt; 2 なる偽装をするだけ o.stubs(:foo).returns(2) assert_equal 2, o.foo(9999) end d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubynews.hatenadiary.org%2Fentry%2F20080603%2F1212508196&quot; title=&quot;モックとスタブについて - ’(rubikitch wanna be (a . lisper))   - RubyNews&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>http://screenshot.hatena.ne.jp/images/120x90/5/4/9/e/9/068ee8531b9d791dd48c34b41627063aadd.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-06-03 00:49:56</published>
  <title>モックとスタブについて - ’(rubikitch wanna be (a . lisper))  </title>
  <type>rich</type>
  <url>https://rubynews.hatenadiary.org/entry/20080603/1212508196</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
