spec/lib/locasms/rest_client_spec.rb in locasms-1.0.0 vs spec/lib/locasms/rest_client_spec.rb in locasms-1.1.0

- old
+ new

@@ -24,10 +24,10 @@ let(:body) { '{"status":1,"data":28,"msg":null}' } it 'performs get request to url with parameters' do allow(Net::HTTP) .to receive(:get_response) - .and_return(OpenStruct.new(body: body)) + .and_return(instance_double(Net::HTTPOK, body: body)) rest_client.get(action, params) expect(Net::HTTP).to have_received(:get_response) end