{"provider_name":"Hatena Blog","width":"100%","provider_url":"https://hatena.blog","categories":["Ruby","RSpec"],"published":"2015-02-09 23:45:19","version":"1.0","type":"rich","blog_title":"Augmented Usamimi","url":"https://izumin.hateblo.jp/entry/2015/02/09/234519","title":"\u3010RSpec\u3011\u914d\u5217\u8981\u7d20\u5168\u3066\u306b\u30de\u30c3\u30c1\u30e3\u3092\u9069\u7528\u3059\u308b","image_url":null,"author_name":"izumin5210","blog_url":"https://izumin.hateblo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fizumin.hateblo.jp%2Fentry%2F2015%2F02%2F09%2F234519\" title=\"\u3010RSpec\u3011\u914d\u5217\u8981\u7d20\u5168\u3066\u306b\u30de\u30c3\u30c1\u30e3\u3092\u9069\u7528\u3059\u308b - 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>","height":"190","description":"all mactcher\u3092\u5229\u7528\u3059\u308b\uff0e expect([1, 3, 5]).to all(be_odd) Compound Matcher\u3082\u5229\u7528\u53ef\u80fd\uff08Compound Matcher\u306b\u3064\u3044\u3066\u306f\u300e\u4eca\u65e5\u304b\u3089\u4f7f\u3048\u308b\uff01RSpec 3\u3067\u8ffd\u52a0\u3055\u308c\u305f8\u3064\u306e\u65b0\u6a5f\u80fd\u300f\u3092\u53c2\u7167\u3055\u308c\u305f\u3044\uff09\uff0e expect([1, 3, 5]).to all(be_odd.and be < 10) expect([1, 4, 21]).to all(be_odd.or be < 10) \u4ee5\u4e0a\uff0c\u4fbf\u5229\u30de\u30c3\u30c1\u30e3\u60c5\u5831\u3067\u3057\u305f\uff0e `all` matcher - Built in matchers - RSpec Expectations - RSp\u2026","author_url":"https://blog.hatena.ne.jp/izumin5210/"}