<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yanterakun</author_name>
  <author_url>https://blog.hatena.ne.jp/yanterakun/</author_url>
  <blog_title>下級エンジニアの綴</blog_title>
  <blog_url>https://yanterakun.hatenablog.com/</blog_url>
  <categories>
    <anon>rspec</anon>
    <anon>ruby</anon>
    <anon>test</anon>
  </categories>
  <description>今回はRspecでメソッドのテストをしたかったのですが、メソッド内で定義しているメソッド先の処理のテストは記述したくなかったので、それを解決したメモになります。 rubyのコード # 今回テストしたかったのはTest1のexecuteメソッドになります Class Test1 def self.execute(test_params) Test2.execute(test_params) Test3.new(test_params).execute(test_params) # ←こいつが一番の曲者でした end end Class Test2 def self.execute(test_pa…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyanterakun.hatenablog.com%2Fentry%2F2017%2F09%2F25%2F060000&quot; title=&quot;Rspecでインスタンスメソッドのテストに苦労したのでメモ - 下級エンジニアの綴&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>2017-09-25 06:00:00</published>
  <title>Rspecでインスタンスメソッドのテストに苦労したのでメモ</title>
  <type>rich</type>
  <url>https://yanterakun.hatenablog.com/entry/2017/09/25/060000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
