{"title":"let\u3068let!\u306e\u9055\u3044\u304c\u308f\u304b\u3089\u306a\u3044","width":"100%","published":"2012-06-23 17:57:51","blog_url":"https://sugamasao.hatenablog.com/","author_name":"seiunsky","blog_title":"\u3059\u304c\u30d6\u30ed","categories":["ruby","rspec"],"url":"https://sugamasao.hatenablog.com/entry/20120623/1340441871","author_url":"https://blog.hatena.ne.jp/seiunsky/","description":"\u9055\u3044\u3068\u3044\u3046\u304b\u4f7f\u3044\u5206\u3051\u65b9\u304c\u308f\u304b\u3089\u306a\u3044 \uff08\u8ffd\u8a18\u30a2\u30ea\uff09 let\u306f\u4f7f\u308f\u308c\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u51e6\u7406\u3055\u308c\u308b\u3002let!\u306f\u6bce\u56de\u51e6\u7406\u3092\u3055\u308c\u308b\u3002 \u3066\u3063\u304d\u308a\u3001let\u306f\u4e00\u56de\u521d\u671f\u5316\u3055\u308c\u305f\u3089\u4f7f\u3044\u307e\u308f\u3055\u308c\u308b\u3093\u3060\u3068\u601d\u3063\u3066\u3044\u305f\u3051\u3069\u3001\u547c\u3073\u51fa\u3055\u308c\u305f\u3068\u304d\u306f\u6bce\u56de\u521d\u671f\u5316\u3059\u308b\u3088\u3046\u3060\u3002 describe 'let_test' do let(:sample_1){ puts \"****let****\"; 'sample1'} let!(:sample_2){ puts \"****let!****\"; 'sample2'} before do puts \"before---\" end after do puts \"after----\" end it \u2026","version":"1.0","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugamasao.hatenablog.com%2Fentry%2F20120623%2F1340441871\" title=\"let\u3068let!\u306e\u9055\u3044\u304c\u308f\u304b\u3089\u306a\u3044 - \u3059\u304c\u30d6\u30ed\" 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","type":"rich","image_url":"http://ecx.images-amazon.com/images/I/51-3T735zLL.jpg"}