{"categories":["RSpec"],"author_name":"arcright","height":"190","author_url":"https://blog.hatena.ne.jp/arcright/","blog_title":"chulip.org","provider_name":"Hatena Blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchulip.org%2Fentry%2F20121218%2F1355808000\" title=\"View\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\u306e\u30bb\u30c3\u30c8\u306b\u3064\u3044\u3066 - 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>","blog_url":"https://chulip.org/","url":"https://chulip.org/entry/20121218/1355808000","image_url":null,"provider_url":"https://hatena.blog","width":"100%","description":"View\u306eSpec\u308d\u304f\u306b\u66f8\u3044\u3066\u306a\u304b\u3063\u305f\u305b\u3044\u3067\u3044\u3056\u66f8\u304f\u3068\u304d\u306b\u3088\u3046\u308f\u304b\u3089\u3093\u304b\u3063\u305f\u306e\u3067doc\u307f\u305f\u3002 http://rubydoc.info/gems/rspec-rails/file/README.md#View_specs assign(key, val)\u3092\u4f7f\u3048\u3070\u3044\u3044\u307f\u305f\u3044\u3002\u3093\u3067\u3053\u306e\u66f8\u304d\u65b9\u306fRSpec2\u7cfb\u304b\u3089\u306a\u306e\u3067 RSpec1\u7cfb\u3092\u3082\u3057\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3042\u308c\u3070assigns[key]\u306b\u4ee3\u5165\u3059\u308b\u65b9\u6cd5\u3092\u4f7f\u3046\u3088\u3046\u3060\u3002 before do assign(hoges, []) end","title":"View\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570\u306e\u30bb\u30c3\u30c8\u306b\u3064\u3044\u3066","published":"2012-12-18 14:20:00","version":"1.0"}