oauth2_api_client 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f658a875027e6f1dcfd8ca75235d581aa5ee577e6cf1cf01e30c5e0c902c987b
|
4
|
+
data.tar.gz: e11832285855ef59f5475fad329ebe3e286983a21e8a21ad2dad41853f508ecb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 292ee89d31d2eed1da05f7b5aec3abd25bef1048c03be27200810d94ed0d71e60b4300a9a28c21a6568a50e2c6c912f9acb85a6b4f7bc0ac5fbe97ec19a82f9c
|
7
|
+
data.tar.gz: 78425acfe627c77d4f4ebba6b78e791a743ae192ae8b39367e3e82e5ea6376d90c11a8272b705a62704b355b32908ee268ec989868be1f66e25c93612224a658
|
data/CHANGELOG.md
CHANGED
@@ -3,9 +3,9 @@ require File.expand_path("../spec_helper", __dir__)
|
|
3
3
|
RSpec.describe Oauth2ApiClient::ResponseError do
|
4
4
|
describe "#to_s" do
|
5
5
|
it "returns the message" do
|
6
|
-
response = double(code: 401, body: "unauthorized")
|
6
|
+
response = double(code: 401, body: "unauthorized", uri: "http://example.com/")
|
7
7
|
|
8
|
-
expect(described_class.new(response).to_s).to eq("Oauth2ApiClient::ResponseError (401): unauthorized")
|
8
|
+
expect(described_class.new(response).to_s).to eq("Oauth2ApiClient::ResponseError (401, http://example.com/): unauthorized")
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
@@ -123,7 +123,7 @@ RSpec.describe Oauth2ApiClient do
|
|
123
123
|
)
|
124
124
|
)
|
125
125
|
|
126
|
-
expect { client.get("/path") }.to raise_error("Oauth2ApiClient::ResponseError::Unauthorized (401): unauthorized")
|
126
|
+
expect { client.get("/path") }.to raise_error("Oauth2ApiClient::ResponseError::Unauthorized (401, http://localhost/api/path): unauthorized")
|
127
127
|
end
|
128
128
|
end
|
129
129
|
end
|