Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 3c3513b

Browse files
committed
Fix cuke so it renders well on relish.
1 parent 192e7cb commit 3c3513b

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

features/expectation_framework_integration/aggregating_failures.feature

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Feature: Aggregating Failures
22

3-
RSpec::Expectations provides [`aggregate_failures`](../../../rspec-expectations/docs/aggregating-failures), an API that allows you to group a set of expectations and see all the failures at once, rather than it aborting on the first failure. RSpec::Core improves on this feature in a couple of ways:
3+
RSpec::Expectations provides [`aggregate_failures`](/rspec/rspec-expectations/v/3-4/docs/aggregating-failures), an API that allows you to group a set of expectations and see all the failures at once, rather than it aborting on the first failure. RSpec::Core improves on this feature in a couple of ways:
44

55
* RSpec::Core provides much better failure output, adding code snippets and backtraces to the sub-failures, just like it does for any normal failure.
66
* RSpec::Core provides [metadata](../metadata/user-defined-metadata) integration for this feature. Each example that is tagged with `:aggregate_failures` will be wrapped in an `aggregate_failures` block. You can also use `config.define_derived_metadata` to apply this to every example automatically.
@@ -56,41 +56,41 @@ Feature: Aggregating Failures
5656
Got 3 failures:
5757
5858
1.1) Got 3 failures from failure aggregation block "testing response".
59-
# ./spec/use_block_form_spec.rb:18:in `block (2 levels) in <top (required)>'
60-
# ./spec/use_block_form_spec.rb:10:in `block (2 levels) in <top (required)>'
59+
# ./spec/use_block_form_spec.rb:18
60+
# ./spec/use_block_form_spec.rb:10
6161
6262
1.1.1) Failure/Error: expect(response.status).to eq(200)
6363
6464
expected: 200
6565
got: 404
6666
6767
(compared using ==)
68-
# ./spec/use_block_form_spec.rb:19:in `block (3 levels) in <top (required)>'
68+
# ./spec/use_block_form_spec.rb:19
6969
7070
1.1.2) Failure/Error: expect(response.headers).to include("Content-Type" => "application/json")
7171
expected {"Content-Type" => "text/plain"} to include {"Content-Type" => "application/json"}
7272
Diff:
7373
@@ -1,2 +1,2 @@
7474
-[{"Content-Type"=>"application/json"}]
7575
+"Content-Type" => "text/plain",
76-
# ./spec/use_block_form_spec.rb:20:in `block (3 levels) in <top (required)>'
76+
# ./spec/use_block_form_spec.rb:20
7777
7878
1.1.3) Failure/Error: expect(response.body).to eq('{"message":"Success"}')
7979
8080
expected: "{\"message\":\"Success\"}"
8181
got: "Not Found"
8282
8383
(compared using ==)
84-
# ./spec/use_block_form_spec.rb:21:in `block (3 levels) in <top (required)>'
84+
# ./spec/use_block_form_spec.rb:21
8585
8686
1.2) Failure/Error: expect(false).to be(true), "after hook failure"
8787
after hook failure
88-
# ./spec/use_block_form_spec.rb:6:in `block (2 levels) in <top (required)>'
89-
# ./spec/use_block_form_spec.rb:10:in `block (2 levels) in <top (required)>'
88+
# ./spec/use_block_form_spec.rb:6
89+
# ./spec/use_block_form_spec.rb:10
9090
9191
1.3) Failure/Error: expect(false).to be(true), "around hook failure"
9292
around hook failure
93-
# ./spec/use_block_form_spec.rb:12:in `block (2 levels) in <top (required)>'
93+
# ./spec/use_block_form_spec.rb:12
9494
"""
9595

9696
Scenario: Use `:aggregate_failures` metadata
@@ -126,21 +126,21 @@ Feature: Aggregating Failures
126126
got: 404
127127
128128
(compared using ==)
129-
# ./spec/use_metadata_spec.rb:7:in `block (2 levels) in <top (required)>'
129+
# ./spec/use_metadata_spec.rb:7
130130
131131
1.2) Failure/Error: expect(response.body).to eq('{"message":"Redirect"}')
132132
133133
expected: "{\"message\":\"Redirect\"}"
134134
got: "Not Found"
135135
136136
(compared using ==)
137-
# ./spec/use_metadata_spec.rb:8:in `block (2 levels) in <top (required)>'
137+
# ./spec/use_metadata_spec.rb:8
138138
139139
1.3) Failure/Error: redirect_response = Client.make_request(response.headers.fetch('Location'))
140140
KeyError:
141141
key not found: "Location"
142-
# ./spec/use_metadata_spec.rb:10:in `fetch'
143-
# ./spec/use_metadata_spec.rb:10:in `block (2 levels) in <top (required)>'
142+
# ./spec/use_metadata_spec.rb:10
143+
# ./spec/use_metadata_spec.rb:10
144144
"""
145145

146146
Scenario: Enable failure aggregation globally using `define_derived_metadata`
@@ -332,21 +332,21 @@ Feature: Aggregating Failures
332332
got: 404
333333
334334
(compared using ==)
335-
# ./spec/pending_spec.rb:8:in `block (2 levels) in <top (required)>'
335+
# ./spec/pending_spec.rb:8
336336
337337
1.2) Failure/Error: expect(response.headers).to include("Content-Type" => "application/json")
338338
expected {"Content-Type" => "text/plain"} to include {"Content-Type" => "application/json"}
339339
Diff:
340340
@@ -1,2 +1,2 @@
341341
-[{"Content-Type"=>"application/json"}]
342342
+"Content-Type" => "text/plain",
343-
# ./spec/pending_spec.rb:9:in `block (2 levels) in <top (required)>'
343+
# ./spec/pending_spec.rb:9
344344
345345
1.3) Failure/Error: expect(response.body).to eq('{"message":"Success"}')
346346
347347
expected: "{\"message\":\"Success\"}"
348348
got: "Not Found"
349349
350350
(compared using ==)
351-
# ./spec/pending_spec.rb:10:in `block (2 levels) in <top (required)>'
351+
# ./spec/pending_spec.rb:10
352352
"""

0 commit comments

Comments
 (0)