{"image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthinkami.hatenablog.com%2Fentry%2F2022%2F06%2F08%2F000420\" title=\"Rails + RSpec\u3067\u3001\u30e1\u30e2\u5316\u3057\u3066\u3044\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u30e2\u30c3\u30af\u3057\u305f\u3089 RSpec::Mocks::ExpiredTestDoubleError \u306b\u306a\u3063\u305f\u306e\u3067\u3001\u8abf\u3079\u3066\u307f\u305f - \u30e1\u30e2\u7684\u306a\u601d\u8003\u7684\u306a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","published":"2022-06-08 00:04:20","height":"190","type":"rich","title":"Rails + RSpec\u3067\u3001\u30e1\u30e2\u5316\u3057\u3066\u3044\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u30e2\u30c3\u30af\u3057\u305f\u3089 RSpec::Mocks::ExpiredTestDoubleError \u306b\u306a\u3063\u305f\u306e\u3067\u3001\u8abf\u3079\u3066\u307f\u305f","author_name":"thinkAmi","provider_name":"Hatena Blog","url":"https://thinkami.hatenablog.com/entry/2022/06/08/000420","version":"1.0","author_url":"https://blog.hatena.ne.jp/thinkAmi/","blog_url":"https://thinkami.hatenablog.com/","description":"Ruby\u3067\u30e1\u30e2\u5316\u3057\u305f\u3044\u6642\u3001 ||= \u3092\u4f7f\u3063\u3066\u66f8\u304f\u3053\u3068\u304c\u3042\u308a\u307e\u3059 *1\u3002 \u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u3042\u308c\u3070\u3001\u30af\u30e9\u30b9\u30e1\u30bd\u30c3\u30c9 twitter \u3092\u4f7f\u3063\u3066\u3001\u30af\u30e9\u30b9\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5909\u6570 @twitter \u306b Api::External::Twitter.new \u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8a2d\u5b9a\u30fb\u30e1\u30e2\u5316\u3057\u3066\u3044\u307e\u3059\u3002 class Api::External::Client def self.twitter @twitter ||= Api::External::Twitter.new end end \u305d\u3093\u306a\u4e2d\u3001\u30e1\u30e2\u5316\u3057\u3066\u3044\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u30e2\u30c3\u30af\u3057\u305f\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u6d41\u3057\u305f\u3068\u3053\u308d RSpec::Mocks::ExpiredTestDoubleE\u2026","provider_url":"https://hatena.blog","blog_title":"\u30e1\u30e2\u7684\u306a\u601d\u8003\u7684\u306a","categories":["Ruby","Rails","RSpec","mock"]}