@@ -59,36 +59,41 @@ Feature: Aggregating Failures
59
59
# ./spec/use_block_form_spec.rb:18
60
60
# ./spec/use_block_form_spec.rb:10
61
61
62
- 1.1.1) Failure/Error: expect(response.status).to eq(200)
62
+ 1.1.1) Failure/Error:
63
+ expect(response.status).to eq(200)
63
64
64
65
expected: 200
65
66
got: 404
66
67
67
68
(compared using ==)
68
69
# ./spec/use_block_form_spec.rb:19
69
70
70
- 1.1.2) Failure/Error: expect(response.headers).to include("Content-Type" => "application/json")
71
+ 1.1.2) Failure/Error:
72
+ expect(response.headers).to include("Content-Type" => "application/json")
71
73
expected {"Content-Type" => "text/plain"} to include {"Content-Type" => "application/json"}
72
74
Diff:
73
75
@@ -1,2 +1,2 @@
74
76
-[{"Content-Type"=>"application/json"}]
75
77
+"Content-Type" => "text/plain",
76
78
# ./spec/use_block_form_spec.rb:20
77
79
78
- 1.1.3) Failure/Error: expect(response.body).to eq('{"message":"Success"}')
80
+ 1.1.3) Failure/Error:
81
+ expect(response.body).to eq('{"message":"Success"}')
79
82
80
83
expected: "{\"message\":\"Success\"}"
81
84
got: "Not Found"
82
85
83
86
(compared using ==)
84
87
# ./spec/use_block_form_spec.rb:21
85
88
86
- 1.2) Failure/Error: expect(false).to be(true), "after hook failure"
89
+ 1.2) Failure/Error:
90
+ expect(false).to be(true), "after hook failure"
87
91
after hook failure
88
92
# ./spec/use_block_form_spec.rb:6
89
93
# ./spec/use_block_form_spec.rb:10
90
94
91
- 1.3) Failure/Error: expect(false).to be(true), "around hook failure"
95
+ 1.3) Failure/Error:
96
+ expect(false).to be(true), "around hook failure"
92
97
around hook failure
93
98
# ./spec/use_block_form_spec.rb:12
94
99
"""
@@ -120,23 +125,26 @@ Feature: Aggregating Failures
120
125
1) Client follows a redirect
121
126
Got 2 failures and 1 other error:
122
127
123
- 1.1) Failure/Error: expect(response.status).to eq(302)
128
+ 1.1) Failure/Error:
129
+ expect(response.status).to eq(302)
124
130
125
131
expected: 302
126
132
got: 404
127
133
128
134
(compared using ==)
129
135
# ./spec/use_metadata_spec.rb:7
130
136
131
- 1.2) Failure/Error: expect(response.body).to eq('{"message":"Redirect"}')
137
+ 1.2) Failure/Error:
138
+ expect(response.body).to eq('{"message":"Redirect"}')
132
139
133
140
expected: "{\"message\":\"Redirect\"}"
134
141
got: "Not Found"
135
142
136
143
(compared using ==)
137
144
# ./spec/use_metadata_spec.rb:8
138
145
139
- 1.3) Failure/Error: redirect_response = Client.make_request(response.headers.fetch('Location'))
146
+ 1.3) Failure/Error:
147
+ redirect_response = Client.make_request(response.headers.fetch('Location'))
140
148
KeyError:
141
149
key not found: "Location"
142
150
# ./spec/use_metadata_spec.rb:10
@@ -172,23 +180,26 @@ Feature: Aggregating Failures
172
180
1) Client returns a successful response
173
181
Got 3 failures:
174
182
175
- 1.1) Failure/Error: expect(response.status).to eq(200)
183
+ 1.1) Failure/Error:
184
+ expect(response.status).to eq(200)
176
185
177
186
expected: 200
178
187
got: 404
179
188
180
189
(compared using ==)
181
190
# ./spec/enable_globally_spec.rb:13
182
191
183
- 1.2) Failure/Error: expect(response.headers).to include("Content-Type" => "application/json")
192
+ 1.2) Failure/Error:
193
+ expect(response.headers).to include("Content-Type" => "application/json")
184
194
expected {"Content-Type" => "text/plain"} to include {"Content-Type" => "application/json"}
185
195
Diff:
186
196
@@ -1,2 +1,2 @@
187
197
-[{"Content-Type"=>"application/json"}]
188
198
+"Content-Type" => "text/plain",
189
199
# ./spec/enable_globally_spec.rb:14
190
200
191
- 1.3) Failure/Error: expect(response.body).to eq('{"message":"Success"}')
201
+ 1.3) Failure/Error:
202
+ expect(response.body).to eq('{"message":"Success"}')
192
203
193
204
expected: "{\"message\":\"Success\"}"
194
205
got: "Not Found"
@@ -225,7 +236,8 @@ Feature: Aggregating Failures
225
236
1) Client returns a successful response
226
237
Got 3 failures:
227
238
228
- 1.1) Failure/Error: expect(response.status).to eq(200)
239
+ 1.1) Failure/Error:
240
+ expect(response.status).to eq(200)
229
241
230
242
expected: 200
231
243
got: 404
@@ -236,23 +248,26 @@ Feature: Aggregating Failures
236
248
1.2) Got 2 failures from failure aggregation block "testing headers".
237
249
# ./spec/nested_failure_aggregation_spec.rb:9
238
250
239
- 1.2.1) Failure/Error: expect(response.headers).to include("Content-Type" => "application/json")
251
+ 1.2.1) Failure/Error:
252
+ expect(response.headers).to include("Content-Type" => "application/json")
240
253
expected {"Content-Type" => "text/plain"} to include {"Content-Type" => "application/json"}
241
254
Diff:
242
255
@@ -1,2 +1,2 @@
243
256
-[{"Content-Type"=>"application/json"}]
244
257
+"Content-Type" => "text/plain",
245
258
# ./spec/nested_failure_aggregation_spec.rb:10
246
259
247
- 1.2.2) Failure/Error: expect(response.headers).to include("Content-Length" => "21")
260
+ 1.2.2) Failure/Error:
261
+ expect(response.headers).to include("Content-Length" => "21")
248
262
expected {"Content-Type" => "text/plain"} to include {"Content-Length" => "21"}
249
263
Diff:
250
264
@@ -1,2 +1,2 @@
251
265
-[{"Content-Length"=>"21"}]
252
266
+"Content-Type" => "text/plain",
253
267
# ./spec/nested_failure_aggregation_spec.rb:11
254
268
255
- 1.3) Failure/Error: expect(response.body).to eq('{"message":"Success"}')
269
+ 1.3) Failure/Error:
270
+ expect(response.body).to eq('{"message":"Success"}')
256
271
257
272
expected: "{\"message\":\"Success\"}"
258
273
got: "Not Found"
@@ -285,15 +300,17 @@ Feature: Aggregating Failures
285
300
1) Aggregating Failures has a normal expectation failure and a message expectation failure
286
301
Got 2 failures:
287
302
288
- 1.1) Failure/Error: expect(response.status).to eq(200)
303
+ 1.1) Failure/Error:
304
+ expect(response.status).to eq(200)
289
305
290
306
expected: 200
291
307
got: 404
292
308
293
309
(compared using ==)
294
310
# ./spec/mock_expectation_failure_spec.rb:10
295
311
296
- 1.2) Failure/Error: expect(client).to receive(:put).with("updated data")
312
+ 1.2) Failure/Error:
313
+ expect(client).to receive(:put).with("updated data")
297
314
(Double "Client").put("updated data")
298
315
expected: 1 time with arguments: ("updated data")
299
316
received: 0 times
@@ -326,23 +343,26 @@ Feature: Aggregating Failures
326
343
# Not yet ready
327
344
Got 3 failures:
328
345
329
- 1.1) Failure/Error: expect(response.status).to eq(200)
346
+ 1.1) Failure/Error:
347
+ expect(response.status).to eq(200)
330
348
331
349
expected: 200
332
350
got: 404
333
351
334
352
(compared using ==)
335
353
# ./spec/pending_spec.rb:8
336
354
337
- 1.2) Failure/Error: expect(response.headers).to include("Content-Type" => "application/json")
355
+ 1.2) Failure/Error:
356
+ expect(response.headers).to include("Content-Type" => "application/json")
338
357
expected {"Content-Type" => "text/plain"} to include {"Content-Type" => "application/json"}
339
358
Diff:
340
359
@@ -1,2 +1,2 @@
341
360
-[{"Content-Type"=>"application/json"}]
342
361
+"Content-Type" => "text/plain",
343
362
# ./spec/pending_spec.rb:9
344
363
345
- 1.3) Failure/Error: expect(response.body).to eq('{"message":"Success"}')
364
+ 1.3) Failure/Error:
365
+ expect(response.body).to eq('{"message":"Success"}')
346
366
347
367
expected: "{\"message\":\"Success\"}"
348
368
got: "Not Found"
0 commit comments