0
임 작동하지 : 나는 정확한 조각을 사용하고 아무것도 작동하지RSpec에 Webmock이 요청하고
Failure/Error: resp = HTTParty.get(BASE_URL + PRODUCTS + yotpo_api_key + GLOBAL_REVIEWS)
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET https://api.yotpo.com/products/abc123apikey/yotpo_global_reviews/reviews with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'}
You can stub this request with the following snippet:
stub_request(:get, "https://api.yotpo.com/products/abc123apikey/yotpo_global_reviews/reviews").
with(headers: {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'}).
to_return(status: 200, body: "", headers: {})
registered request stubs:
stub_request(:any, "/https:\/\/api.baremetrics.com/")
stub_request(:post, "https://api.mixpanel.com/track")
stub_request(:post, "https://api.mixpanel.com/engage")
: https://api.yotpo.com/products/abc123apikey/yotpo_global_reviews/reviews
여기 내 오류입니다. 나는 수색을하고 뭉치를 시도하고 아무것도 변화하고있다. 나는 머리말을 역시 제거하는 시도했다.
이 스텁 요청에서 동적 인 내용은 표시되지 않습니다. 나는 명백한 실수를하고 있는가?
삭제하려는 경우 질문 아래에 "삭제"링크가 있습니다. – Floern