{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frochefort.hatenablog.com%2Fentry%2F20120729%2Fp1\" title=\"WebMock\u3067API\u30ea\u30af\u30a8\u30b9\u30c8\u3092stub\u5316\u3059\u308b - rochefort&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"WebMock\u3067API\u30ea\u30af\u30a8\u30b9\u30c8\u3092stub\u5316\u3059\u308b","author_name":"rochefort","width":"100%","type":"rich","categories":["ruby","test","rspec"],"blog_title":"rochefort's blog","blog_url":"https://rochefort.hatenablog.com/","height":"190","description":"\u30c6\u30b9\u30c8\u6642\u306b\u3001API\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092stub\u5316\u3059\u308b\u7528\u9014\u3067\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f\u3002 bblimke/webmock github\u306e\u30da\u30fc\u30b8\u3092\u898b\u308c\u3070\u308f\u304b\u308a\u307e\u3059\u304c\u3001 rspec /test unit /minitest/cuke\u306b\u5bfe\u5fdc\u306a\u3069\u3001\u3068\u306b\u304b\u304f\u9ad8\u6a5f\u80fd\u3067\u3059\u3002 \u4ed6\u306b\u3082\u3001fakeweb\u3001ww\u306a\u3069\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u4e00\u756a\u66f4\u65b0\u3055\u308c\u3066\u305d\u3046\u3060\u3063\u305f\u306e\u3067 \u4eca\u56de\u306f\u3053\u3061\u3089\u3092\u9078\u629e\u3002 \u4f7f\u3044\u65b9 \u8a73\u7d30\u306f\u3001github\u306e\u30da\u30fc\u30b8\u898b\u3066\u304f\u3060\u3055\u3044\u3002 gem\u5165\u308c\u3066\u3001spec_helper\u3067require\u3059\u308b\u3060\u3051\u3067\u3059\u3002 require 'webmock/rspec' \u3042\u3068\u306f\u3001stub_request\u3067\u81ea\u7531\u81ea\u5728\u3002 stub_request(:get, \"\u2026","provider_url":"https://hatena.blog","image_url":null,"published":"2012-07-29 00:00:00","version":"1.0","author_url":"https://blog.hatena.ne.jp/rochefort/","provider_name":"Hatena Blog","url":"https://rochefort.hatenablog.com/entry/20120729/p1"}