rest_my_case 1.10.4 → 1.10.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2NlYWQyNTRmYTI5MDIyNDZiNTVjYjNlYzE0OGY1ZmFmZDJjYTVkZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDFkNzkyMGUxOTIyYTFhMDg3MzIyMDNkZjI1ZmI4NjRlY2IyNmMyMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzYzZGIzMGI3ZjQ1ZjFmYWFlODFhMTEwNzkyMjcwZjRlMTNlN2UzMTA2Zjdl
|
10
|
+
NWI1M2RiNjQzMThmZTRiZWE1OWIyNzBmNTkwYjk3MjIyNjIxMDVmOGJlZDMx
|
11
|
+
YTc3YjAwYzRlZTQwMWIyZjZjZGRjNWU1ZGNmOTE0MzU0MTEwN2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjE5YWY2NTU0MGZmYjBiZjRlNjNiODcxM2E2MTMyOGJhMDI0ZTE2ZjI1NWRj
|
14
|
+
YzRmOTkxNTEyNWY0M2IyOTBjNTIwZTg1YzUwNzJjMjVkNTJhNGU4Nzk4NWI2
|
15
|
+
ZjMyNTcxMDcxNzEzODcwN2NmZWVhMThiMWUyY2RkMzQyNWE2YWM=
|
data/lib/rest_my_case/version.rb
CHANGED
@@ -32,7 +32,7 @@ describe RestMyCase::HttpStatus do
|
|
32
32
|
end
|
33
33
|
|
34
34
|
it "@context.error_response should only list the class's dependencies" do
|
35
|
-
expect(@context.error_response).to match a_hash_including({ status:
|
35
|
+
expect(@context.error_response).to match a_hash_including({ status: 'unprocessable_entity', http_status: 422, message: nil })
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -49,7 +49,7 @@ describe RestMyCase::HttpStatus do
|
|
49
49
|
end
|
50
50
|
|
51
51
|
it "@context.error_response should only list the class's dependencies" do
|
52
|
-
expect(@context.error_response).to match a_hash_including({ status:
|
52
|
+
expect(@context.error_response).to match a_hash_including({ status: 'service_unavailable', http_status: 503, code: 404, message: "github could not found repo" })
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
@@ -47,7 +47,7 @@ describe RestMyCase::Status do
|
|
47
47
|
end
|
48
48
|
|
49
49
|
it "context's errors should have a proper message" do
|
50
|
-
expect(@context.errors).to match [a_hash_including({ status:
|
50
|
+
expect(@context.errors).to match [a_hash_including({ status: 'unprocessable_entity', message: nil, class_name: "StatusTestCase2" })]
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
@@ -75,7 +75,7 @@ describe RestMyCase::Status do
|
|
75
75
|
end
|
76
76
|
|
77
77
|
it "context's errors should have a proper message" do
|
78
|
-
expect(@context.errors).to match [a_hash_including({ status:
|
78
|
+
expect(@context.errors).to match [a_hash_including({ status: 'internal_server_error', message: nil, class_name: "StatusTestCase3" })]
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
@@ -103,7 +103,7 @@ describe RestMyCase::Status do
|
|
103
103
|
end
|
104
104
|
|
105
105
|
it "context's errors should have a proper message" do
|
106
|
-
expect(@context.errors).to match [a_hash_including({ status:
|
106
|
+
expect(@context.errors).to match [a_hash_including({ status: 'internal_server_error', message: 'something bad', class_name: "StatusTestCase4", yada: true })]
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
@@ -131,7 +131,7 @@ describe RestMyCase::Status do
|
|
131
131
|
end
|
132
132
|
|
133
133
|
it "context's errors should have a proper message" do
|
134
|
-
expect(@context.errors).to match [a_hash_including({ status:
|
134
|
+
expect(@context.errors).to match [a_hash_including({ status: 'unprocessable_entity', message: 'invalid id', class_name: "StatusTestCase5" })]
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|
@@ -159,7 +159,7 @@ describe RestMyCase::Status do
|
|
159
159
|
end
|
160
160
|
|
161
161
|
it "context's errors should have a proper message" do
|
162
|
-
expect(@context.errors).to match [a_hash_including({ status:
|
162
|
+
expect(@context.errors).to match [a_hash_including({ status: 'internal_server_error', message: 'while saving the resource', class_name: "StatusTestCase6" })]
|
163
163
|
end
|
164
164
|
end
|
165
165
|
|