{"width":"100%","provider_name":"Hatena Blog","author_name":"pebble8888","title":"rails \u30ed\u30b0\u30a4\u30f3\u306eintegration test\u3067\u5931\u6557\u3059\u308b\u539f\u56e0","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpebble8888.hatenablog.com%2Fentry%2F2016%2F05%2F31%2F221802\" title=\"rails \u30ed\u30b0\u30a4\u30f3\u306eintegration test\u3067\u5931\u6557\u3059\u308b\u539f\u56e0 - Pebble Coding\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","categories":["rails/ruby"],"image_url":null,"published":"2016-05-31 22:18:02","url":"https://pebble8888.hatenablog.com/entry/2016/05/31/221802","blog_url":"https://pebble8888.hatenablog.com/","description":"rails\u3067\u30ed\u30b0\u30a4\u30f3\u306eintegration test\u3067CSRF\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3001\u30c6\u30b9\u30c8\u306b\u5931\u6557\u3059\u308b\u3002 \u30d6\u30e9\u30a6\u30b6\u304b\u3089\u5b9f\u884c\u3057\u305f\u6642\u306f\u30a8\u30e9\u30fc\u306b\u306f\u306a\u3089\u306a\u3044\u3002 \u5ef6\u3005\u3001\u539f\u56e0\u304c\u5206\u304b\u3089\u305a\u3001\u304b\u306a\u308a\u9060\u56de\u308a\u3057\u305f\u7d50\u679c\u3001\u539f\u56e0\u304c\u5224\u660e\u3057\u305f\u3002 1) .bash_profile\u306bRAILS_ENV=develop\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u3068\u3001rake test\u3057\u305f\u6642\u306bdevelop\u74b0\u5883\u3067\u30c6\u30b9\u30c8\u304c\u8d70\u3063\u3066\u3057\u307e\u3046\u3002 2) integration test\u306e\u30b1\u30fc\u30b9\u3068\u30d6\u30e9\u30a6\u30b6\u3067\u306e\u30b1\u30fc\u30b9\u3067\u306ePOST\u6642\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u6bd4\u8f03\u3059\u308b\u3068\u3001 integration test\u306e\u5834\u5408\u306f\u3001\"utf8\",\"authenticaity_token\",\"commit\"\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u2026","author_url":"https://blog.hatena.ne.jp/pebble8888/","provider_url":"https://hatena.blog","blog_title":"Pebble Coding","type":"rich"}