{"author_url":"https://blog.hatena.ne.jp/arcright/","width":"100%","height":"190","title":"RSpec Mocks Receive Counts","provider_name":"Hatena Blog","version":"1.0","url":"https://chulip.org/entry/20121025/1351144423","published":"2012-10-25 14:53:43","blog_url":"https://chulip.org/","image_url":null,"categories":["RSpec"],"blog_title":"chulip.org","description":"\u5168\u7136\u899a\u3048\u3089\u308c\u306a\u3044\u306e\u3067\u3053\u3053\u306b\u66f8\u3044\u305f\u3068\u3044\u3046\u3053\u3068\u3060\u3051\u899a\u3048\u307e\u3057\u3087\u3046 https://github.com/rspec/rspec-mocks ## \u4f55\u3082\u6307\u5b9a\u3057\u306a\u3044\u30681\u56de\u3067\u3059 # 1\u56de double.should_receive(:msg).once # 2\u56de double.should_receive(:msg).twice # n\u56de double.should_receive(:msg).exactly(n).times # \u6700\u4f4e1\u56de double.should_receive(:msg).at_least(:once) # \u6700\u4f4e2\u56de double.should_receive(:msg).at_l\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchulip.org%2Fentry%2F20121025%2F1351144423\" title=\"RSpec Mocks Receive Counts - 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>","type":"rich","provider_url":"https://hatena.blog","author_name":"arcright"}