<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rubikitch</author_name>
  <author_url>https://blog.hatena.ne.jp/rubikitch/</author_url>
  <blog_title>http://rubikitch.com/に移転しました</blog_title>
  <blog_url>https://rubikitch.hatenadiary.org/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>Mochaが楽しそう - LukeSilvia’s diaryスタブはただ偽装するだけ、モックは引数や呼ばれた回数等のチェックを行う。 チェック機能がほしいときにモックを使って、そうじゃなけりゃスタブを使う。 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…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubikitch.hatenadiary.org%2Fentry%2F20080602%2F1212425167&quot; title=&quot;Rubyにおけるモックとスタブについて - http://rubikitch.com/に移転しました&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-06-02 01:46:07</published>
  <title>Rubyにおけるモックとスタブについて</title>
  <type>rich</type>
  <url>https://rubikitch.hatenadiary.org/entry/20080602/1212425167</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
