spec/support/httparty_helpers.rb in fizzy-api-0.1.0 vs spec/support/httparty_helpers.rb in fizzy-api-0.1.1
- old
+ new
@@ -1,6 +1,7 @@
def httparty_response(response_data)
- allow(response_data).to receive(:body).and_return response_data
- allow(response_data).to receive(:code).and_return 200
- allow(response_data).to receive(:parsed_response).and_return response_data
- response_data
+ response = double('reponse')
+ allow(response).to receive(:body).and_return response_data
+ allow(response).to receive(:code).and_return 200
+ allow(response).to receive(:parsed_response).and_return response_data
+ response
end