<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Sixeight</author_name>
  <author_url>https://blog.hatena.ne.jp/Sixeight/</author_url>
  <blog_title>ちなみに</blog_title>
  <blog_url>https://blog.nishimu.land/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>研究でdRubyを使っているのですが、そのとき詰まったのがテストの方法で、しばらく悩んでしまった 今回は僕の使っている方法を書き残しておこうと思う ちなみに、RSpecの使用を前提としている 通信をおこなわない場合 まずは、通信を行わない場合について考える。単純に、ちゃんとdRubyサービスを開始しているかをテストするには、should_receiveを使って以下のように書く it 'should connect server' do uri = 'druby://...' DRb.should_receive(:start_service).with(uri, @server) @serve…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.nishimu.land%2Fentry%2F20081226%2F1230270926&quot; title=&quot;dRubyを使用したコードのテスト方法 - ちなみに&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-12-26 14:55:26</published>
  <title>dRubyを使用したコードのテスト方法</title>
  <type>rich</type>
  <url>https://blog.nishimu.land/entry/20081226/1230270926</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
