{"blog_title":"\u304b\u3082\u30e1\u30e2","provider_name":"Hatena Blog","title":"RSpec include_context \u3063\u3066\u4f55","author_url":"https://blog.hatena.ne.jp/kikiki-kiki/","width":"100%","categories":["RSpec","Ruby on Rails","Ruby","Unit Test"],"image_url":"https://images-fe.ssl-images-amazon.com/images/I/51KHr6cffnL._SL160_.jpg","version":"1.0","provider_url":"https://hatena.blog","type":"rich","description":"\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e RSpec \u3092\u307f\u3066\u3044\u3066\u3001 include_context \u301c \u3068\u3044\u3046\u6587\u7ae0\u304c\u3042\u308a\u5171\u901a\u51e6\u7406\u3092\u3057\u3066\u3044\u308b\u3063\u307d\u3044\u3051\u3069\u3001\u3069\u3046\u3044\u3046\u3082\u306e\u306a\u306e\u304b\u77e5\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u8abf\u3079\u305f\u30e1\u30e2 include_context ref. shared context - Example groups - RSpec Core - RSpec - Relish shared_context \u301c \u3067\u5b9a\u7fa9\u3055\u308c\u305f\u5171\u901a\u51e6\u7406\u3092 include \u3059\u308b e.g. # shared/login.rb \u5171\u901a\u51e6\u7406 RSpec.shared_context 'login as user' do let(:login_user) { creat\u2026","author_name":"kikiki-kiki","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2019%2F05%2F31%2F083000\" title=\"RSpec include_context \u3063\u3066\u4f55 - \u304b\u3082\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://chaika.hatenablog.com/","published":"2019-05-31 08:30:00","url":"https://chaika.hatenablog.com/entry/2019/05/31/083000"}