spec/px/service/client/base_spec.rb in px-service-client-1.1.0 vs spec/px/service/client/base_spec.rb in px-service-client-1.2.0

- old
+ new

@@ -14,11 +14,11 @@ } let(:successful_response) do Typhoeus::Response.new( code: 200, - body: { status: 200, message: "Success"}.to_json, + body: { status: 200, message: "Success" }.to_json, headers: { "Content-Type" => "application/json"} ) end describe '#make_request' do let(:url) { 'http://localhost:3000/path' } @@ -275,10 +275,10 @@ multi.context do resp = multi.do(req) end.run resp - end.value!['code']).to eq(200) + end.value!.response_code).to be(200) end end end end \ No newline at end of file