{"categories":["Ruby","RSpec"],"url":"https://izumin.hateblo.jp/entry/2015/01/05/234506","author_name":"izumin5210","author_url":"https://blog.hatena.ne.jp/izumin5210/","version":"1.0","blog_title":"Augmented Usamimi","description":"yield matchers\u306a\u308b\u3082\u306e\u304c\u3042\u308b\u3089\u3057\u3044\uff0e let(:array) { [1, 2, 3] } it { expect { |b| array.each(&b) }.to yield_control } it { expect { |b| array.each(&b) }.to yield_control.exactly(3) } it { expect { |b| array.each(&b) }.to yield_successive_args(Integer, Integer, Integer) } \u3079\u3093\u308a\u3060\u306a\u3042\uff0e `yield` matchers - Built in matc\u2026","provider_name":"Hatena Blog","image_url":null,"height":"190","published":"2015-01-05 23:45:06","type":"rich","blog_url":"https://izumin.hateblo.jp/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fizumin.hateblo.jp%2Fentry%2F2015%2F01%2F05%2F234506\" title=\"\u3010RSpec\u3011yield\u3092\u4f34\u3046\u30e1\u30bd\u30c3\u30c9\uff08\u30d6\u30ed\u30c3\u30af\u5f15\u6570 etc.\uff09\u306e\u30c6\u30b9\u30c8 - Augmented Usamimi\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","title":"\u3010RSpec\u3011yield\u3092\u4f34\u3046\u30e1\u30bd\u30c3\u30c9\uff08\u30d6\u30ed\u30c3\u30af\u5f15\u6570 etc.\uff09\u306e\u30c6\u30b9\u30c8"}