ç 究ã§dRubyã使ã£ã¦ããã®ã§ããããã®ã¨ãè©°ã¾ã£ãã®ããã¹ãã®æ¹æ³ã§ããã°ããæ©ãã§ãã¾ã£ã ä»åã¯åã®ä½¿ã£ã¦ããæ¹æ³ãæ¸ãæ®ãã¦ãããã¨æã ã¡ãªã¿ã«ãRSpecã®ä½¿ç¨ãåæã¨ãã¦ãã éä¿¡ããããªããªãå ´å ã¾ãã¯ãéä¿¡ãè¡ããªãå ´åã«ã¤ãã¦èããã åç´ã«ãã¡ããã¨dRubyãµã¼ãã¹ãéå§ãã¦ãããããã¹ãããã«ã¯ãshould_receiveã使ã£ã¦ä»¥ä¸ã®ããã«æ¸ã it 'should connect server' do uri = 'druby://...' DRb.should_receive(:start_service).with(uri, @server) @server.start end @server.startã®ä¸ã§DRb.start_serviceãå¼ã°ããªããã°ã¨ã©ã¼ã«ãªãããã®ã¨ãwithã§@serverèªèº«ãæå®ãã¦ããã®ã¯ãå é¨ã§èªåèªèº«ãããã³
{{#tags}}- {{label}}
{{/tags}}