{"blog_url":"https://chulip.org/","height":"190","categories":["RSpec"],"author_name":"arcright","blog_title":"chulip.org","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchulip.org%2Fentry%2F2012%2F12%2F26%2F200705\" title=\"RSpec and_yield\u3092\u4f7f\u3063\u3066\u30d6\u30ed\u30c3\u30af\u4ed8\u304d\u30e1\u30bd\u30c3\u30c9\u306estub\u3092\u899a\u3048\u305f - chulip.org\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"RSpec describe 'hoge' do before do Model.stub_chain(:all, :each).and_yield(1).and_yield(2) end # \u4ee5\u5f8c\u7565... end \u5b9f\u88c5 Model.all.each do |hoge| p hoge end \u2191\u307f\u305f\u3044\u306a\u4e8b\u3059\u308b\u3068hoge\u304c1\u56de\u76ee\u304c1\u30022\u56de\u76ee\u304c2\u306b\u306a\u308b\u306e\u3067\u3068\u3066\u3082\u4fbf\u5229\u3060\u306a\u3042\u3002","version":"1.0","provider_url":"https://hatena.blog","type":"rich","published":"2012-12-26 20:07:05","author_url":"https://blog.hatena.ne.jp/arcright/","image_url":null,"title":"RSpec and_yield\u3092\u4f7f\u3063\u3066\u30d6\u30ed\u30c3\u30af\u4ed8\u304d\u30e1\u30bd\u30c3\u30c9\u306estub\u3092\u899a\u3048\u305f","provider_name":"Hatena Blog","url":"https://chulip.org/entry/2012/12/26/200705","width":"100%"}