{"width":"100%","version":"1.0","provider_name":"Hatena Blog","image_url":null,"url":"https://kouji0625.hatenadiary.org/entry/20130723/p1","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkouji0625.hatenadiary.org%2Fentry%2F20130723%2Fp1\" title=\"\u304b\u3042\u3055\u3093\u3001RSpec Mock 2.14\u306bTest Spy\u304c\u3042\u308b\u3088\u3046\u3067... - \u9ad8\u5c3e\u5b8f\u6cbb\u65e5\u8a18 on \u306f\u3066\u306a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2013-07-23 00:00:00","blog_title":"\u9ad8\u5c3e\u5b8f\u6cbb\u65e5\u8a18 on \u306f\u3066\u306a","description":"RSpec Mock 2.14\u306b\u306fexpect\u3063\u307d\u3044\u8a18\u8ff0\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u306d\u3002http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ # Old foo.should_receive(:bar) foo.should_receive(:bar).with(:buzz) foo.should_receive(:bar).exactly(3).times # New expect(foo).to receive(:bar) expect(foo).to receive(:bar).with(:buzz) \u2026","author_name":"kouji0625","blog_url":"https://kouji0625.hatenadiary.org/","author_url":"https://blog.hatena.ne.jp/kouji0625/","categories":["Ruby","RSpec"],"height":"190","title":"\u304b\u3042\u3055\u3093\u3001RSpec Mock 2.14\u306bTest Spy\u304c\u3042\u308b\u3088\u3046\u3067...","type":"rich","provider_url":"https://hatena.blog"}