æè¿ã® RSpec ã¯ãããã¾ã§ obj.stub(hoge: value) ã¨æ¸ãããã®ãã allow(obj).to receive(:hoge).and_return value ã¨æ¸ããªãã¨ãããªããªã£ããã¨ããæ£æ°ã®æ²æ±°ã¨ã¯æããªããããªå¤æ´ããããããã®ã§ãä½å¹´ãã¶ãã« Test::Unit ã使ã£ã¦ã¿ããã¨ãªãããªä¸ã§ãã RSpec ã¯ããã¹ãã±ã¼ã¹ãå ¥ãåã«ã§ãããããã¹ãã±ã¼ã¹ã example ãã¯ã©ã¹ãã¡ã½ããã§ã¯ãªããæååã§èªç±ã«æ¸ããã¨ãã§ãããããã®ãè¯ãã£ãã®ã§ãããæè¿ã® Test::Unit ã§ã¯ãããã§ããããã«ãªã£ã¦ãã¾ãã [ruby-list:48926] [ANN] test-unit 2.5.2 ãã®ãªãªã¼ã¹ã¯ã¨ã¿ãããã«ä½¿ã£ã¦ããããããã«æ¹è¯ãããªãªã¼ ã¹ã§ããæ°ãã追å ãã--locationã¯RSpecã®--line_number
{{#tags}}- {{label}}
{{/tags}}