Skip to content

Commit 9239978

Browse files
committed
Fix broken links
1 parent 3c571a8 commit 9239978

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

features/controller_specs/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ To specify outcomes, you can use:
1919
- standard test/unit assertions (`assert_equal 200, response.status`)
2020
- rails assertions (`assert_response 200`)
2121
- rails-specific matchers:
22-
- [`render_template`](../matchers/render-template-matcher)
22+
- [`render_template`](./matchers/render-template-matcher)
2323

2424
```ruby
2525
expect(response).to render_template(:new) # wraps assert_template
2626
```
27-
- [`redirect_to`](../matchers/redirect-to-matcher)
27+
- [`redirect_to`](./matchers/redirect-to-matcher)
2828

2929
```ruby
3030
expect(response).to redirect_to(location) # wraps assert_redirected_to
3131
```
32-
- [`have_http_status`](../matchers/have-http-status-matcher)
32+
- [`have_http_status`](./matchers/have-http-status-matcher)
3333

3434
```ruby
3535
expect(response).to have_http_status(:created)
3636
```
37-
- [`be_a_new`](../matchers/be-a-new-matcher)
37+
- [`be_a_new`](./matchers/new-record-matcher)
3838

3939
```ruby
4040
expect(assigns(:widget)).to be_a_new(Widget)
@@ -60,12 +60,12 @@ To specify outcomes, you can use:
6060
## Views
6161

6262
* by default, views are not rendered. See
63-
[views are stubbed by default](controller-specs/views-are-stubbed-by-default) and
64-
[render_views](controller-specs/render-views) for details.
63+
[views are stubbed by default](./controller-specs/isolation-from-views) and
64+
[render_views](./controller-specs/render-views) for details.
6565

6666
## Headers
6767

68-
We encourage you to use [request specs](https://relishapp.com/rspec/rspec-rails/docs/request-specs/request-spec) if you want to set headers in your call. If you still want to use controller specs with custom http headers you can use `request.headers`:
68+
We encourage you to use [request specs](../request-specs/request-spec) if you want to set headers in your call. If you still want to use controller specs with custom http headers you can use `request.headers`:
6969

7070
require "rails_helper"
7171

features/directory_structure.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Feature: The directory structure
5454
**Note:** Standard RSpec specs do not require any additional metadata by
5555
default.
5656

57-
Check out the [`rspec-core`](../../latest/rspec-core) documentation on [using metadata](../../latest/rspec-core/metadata) for more details.
57+
Check out the [`rspec-core`](../../3-12/rspec-core) documentation on [using metadata](../../3-12/rspec-core/metadata) for more details.
5858

5959
**Automatically Adding Metadata**
6060

features/matchers/render_template_matcher.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Feature: `render_template` matcher
22

33
The `render_template` matcher is used to specify that a request renders a
44
given template or layout. It delegates to
5-
[`assert_template`](https://api.rubyonrails.org/classes/ActionController/TemplateAssertions.html#method-i-assert_template)
5+
[`assert_template`](https://api.rubyonrails.org/v5.2/classes/ActionController/TemplateAssertions.html#method-i-assert_template)
66

77
It is available in controller specs (spec/controllers) and request
88
specs (spec/requests).

features/upgrade/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ RSpec Rails 4 is a major version under semantic versioning, it allowed us to cha
1616

1717
If you are using Rails 4.2 you can use RSpec Rails 4, but note that support for it is not maintained, we consider this a breaking change hence the version change, and you must be on Ruby 2.2 as a minimum.
1818

19-
If you are upgrading from an earlier version of RSpec Rails, please consult [the upgrading 2.x to 3.x guide](https://relishapp.com/rspec/rspec-rails/v/3-9/docs/upgrade).
19+
If you are upgrading from an earlier version of RSpec Rails, please consult [the upgrading 2.x to 3.x guide](https://web.archive.org/web/20221206041517/https://relishapp.com/rspec/rspec-rails/v/3-9/docs/upgrade).

0 commit comments

Comments
 (0)