@@ -15,8 +15,6 @@ According to [RSpec Rails new versioning strategy][] use:
15
15
* ** [ ` rspec-rails ` 3.x] [ ] ** for Rails earlier than 5.0.
16
16
* ** [ ` rspec-rails ` 1.x] [ ] ** for Rails 2.x.
17
17
18
- [ Build Status ] : https://secure.travis-ci.org/rspec/rspec-rails.svg?branch=main
19
- [ travis-ci ] : https://travis-ci.org/rspec/rspec-rails
20
18
[ Code Climate ] : https://codeclimate.com/github/rspec/rspec-rails.svg
21
19
[ code-climate ] : https://codeclimate.com/github/rspec/rspec-rails
22
20
[ Gem Version ] : https://badge.fury.io/rb/rspec-rails.svg
@@ -88,8 +86,8 @@ read the [`rspec-rails` upgrade notes][] to find out what to watch out for.
88
86
89
87
Be sure to check the general [ RSpec upgrade notes] [ ] as well.
90
88
91
- [ `rspec-rails` upgrade notes ] : https://www.relishapp.com/rspec/ rspec-rails/docs /upgrade
92
- [ RSpec upgrade notes ] : https://relishapp.com/ rspec/docs/upgrade
89
+ [ `rspec-rails` upgrade notes ] : https://rspec.info/features/6-0/ rspec-rails/upgrade
90
+ [ RSpec upgrade notes ] : https://rspec.info/upgrading-from- rspec-2/
93
91
94
92
## Usage
95
93
@@ -183,7 +181,7 @@ rspec ./spec/models/post_spec.rb:3 # Post before publication cannot have comment
183
181
For an in-depth look at the RSpec DSL, including lots of examples,
184
182
read the official Cucumber documentation for [ RSpec Core] [ ] .
185
183
186
- [ RSpec Core ] : https://relishapp.com/rspec/ rspec-core/docs
184
+ [ RSpec Core ] : https://rspec.info/features/3-12/ rspec-core
187
185
188
186
### Helpful Rails Matchers
189
187
@@ -209,23 +207,23 @@ to test the various parts of a Rails system:
209
207
210
208
Follow the links above for examples of how each matcher is used.
211
209
212
- [ the matchers that come standard in RSpec ] : https://relishapp.com/rspec/ rspec-expectations/docs /built-in-matchers
213
- [ `be_a_new` ] : https://relishapp.com/rspec/ rspec-rails/docs/ matchers/be-a- new-matcher
214
- [ `render_template` ] : https://relishapp.com/rspec/ rspec-rails/docs /matchers/render-template-matcher
215
- [ `redirect_to` ] : https://relishapp.com/rspec/ rspec-rails/docs /matchers/redirect-to-matcher
216
- [ `route_to` ] : https://relishapp.com/rspec/ rspec-rails/docs /routing-specs/route-to-matcher
217
- [ `be_routable` ] : https://relishapp.com/rspec/ rspec-rails/docs /routing-specs/be-routable-matcher
218
- [ `have_http_status` ] : https://relishapp.com/rspec/ rspec-rails/docs /matchers/have-http-status-matcher
219
- [ `match_array` ] : https://relishapp.com/rspec/ rspec-rails/docs/ matchers/activerecord- relation-match-array
220
- [ `have_been_enqueued` ] : https://relishapp.com/rspec/ rspec-rails/docs /matchers/have-been-enqueued-matcher
221
- [ `have_enqueued_job` ] : https://relishapp.com/rspec/ rspec-rails/docs /matchers/have-enqueued-job-matcher
210
+ [ the matchers that come standard in RSpec ] : https://rspec.info/features/3-12/ rspec-expectations/built-in-matchers
211
+ [ `be_a_new` ] : https://rspec.info/features/6-0/ rspec-rails/matchers/new-record -matcher
212
+ [ `render_template` ] : https://rspec.info/features/6-0/ rspec-rails/matchers/render-template-matcher
213
+ [ `redirect_to` ] : https://rspec.info/features/6-0/ rspec-rails/matchers/redirect-to-matcher
214
+ [ `route_to` ] : https://rspec.info/features/6-0/ rspec-rails/routing-specs/route-to-matcher
215
+ [ `be_routable` ] : https://rspec.info/features/6-0/ rspec-rails/routing-specs/be-routable-matcher
216
+ [ `have_http_status` ] : https://rspec.info/features/6-0/ rspec-rails/matchers/have-http-status-matcher
217
+ [ `match_array` ] : https://rspec.info/features/6-0/ rspec-rails/matchers/relation-match-array
218
+ [ `have_been_enqueued` ] : https://rspec.info/features/6-0/ rspec-rails/matchers/have-been-enqueued-matcher
219
+ [ `have_enqueued_job` ] : https://rspec.info/features/6-0/ rspec-rails/matchers/have-enqueued-job-matcher
222
220
223
221
### What else does RSpec Rails add?
224
222
225
223
For a comprehensive look at RSpec Rails’ features,
226
224
read the [ official Cucumber documentation] [ ] .
227
225
228
- [ official Cucumber documentation ] : https://relishapp.com/rspec/ rspec-rails/docs
226
+ [ official Cucumber documentation ] : https://rspec.info/features/6-0/ rspec-rails
229
227
230
228
## What tests should I write?
231
229
@@ -270,20 +268,20 @@ RSpec.describe User, type: :model do
270
268
...
271
269
```
272
270
273
- [ request ] : https://relishapp.com/rspec/ rspec-rails/docs /request-specs/request-spec
274
- [ feature ] : https://www.relishapp.com/rspec/ rspec-rails/docs /feature-specs/feature-spec
275
- [ system ] : https://relishapp.com/rspec/ rspec-rails/docs/ system-specs/system-spec
276
- [ model ] : https://www.relishapp.com/rspec/ rspec-rails/docs /model-specs
277
- [ controller ] : https://www.relishapp.com/rspec/ rspec-rails/docs /controller-specs
278
- [ mailer ] : https://relishapp.com/rspec/ rspec-rails/docs /mailer-specs
279
- [ job ] : https://relishapp.com/rspec/ rspec-rails/docs /job-specs/job-spec
280
- [ view ] : https://www.relishapp.com/rspec/ rspec-rails/docs /view-specs/view-spec
281
- [ routing ] : https://www.relishapp.com/rspec/ rspec-rails/docs /routing-specs
282
- [ helper ] : https://www.relishapp.com/rspec/ rspec-rails/docs /helper-specs/helper-spec
271
+ [ request ] : https://rspec.info/features/6-0/ rspec-rails/request-specs/request-spec
272
+ [ feature ] : https://rspec.info/features/6-0/ rspec-rails/feature-specs/feature-spec
273
+ [ system ] : https://rspec.info/features/6-0/ rspec-rails/system-specs/system-specs
274
+ [ model ] : https://rspec.info/features/6-0/ rspec-rails/model-specs
275
+ [ controller ] : https://rspec.info/features/6-0/ rspec-rails/controller-specs
276
+ [ mailer ] : https://rspec.info/features/6-0/ rspec-rails/mailer-specs
277
+ [ job ] : https://rspec.info/features/6-0/ rspec-rails/job-specs/job-spec
278
+ [ view ] : https://rspec.info/features/6-0/ rspec-rails/view-specs/view-spec
279
+ [ routing ] : https://rspec.info/features/6-0/ rspec-rails/routing-specs
280
+ [ helper ] : https://rspec.info/features/6-0/ rspec-rails/helper-specs/helper-spec
283
281
[ `ActionDispatch::IntegrationTest` ] : https://api.rubyonrails.org/classes/ActionDispatch/IntegrationTest.html
284
282
[ `ActionDispatch::SystemTestCase` ] : https://api.rubyonrails.org/classes/ActionDispatch/SystemTestCase.html
285
283
[ `ActionController::TestCase` ] : https://api.rubyonrails.org/classes/ActionController/TestCase.html
286
- [ in the appropriate folder ] : https://relishapp.com/rspec/ rspec-rails/docs /directory-structure
284
+ [ in the appropriate folder ] : https://rspec.info/features/6-0/ rspec-rails/directory-structure
287
285
288
286
### System specs, feature specs, request specs–what’s the difference?
289
287
@@ -366,10 +364,10 @@ you can run the specs and Cucumber features, or submit a pull request.
366
364
367
365
### RSpec base libraries
368
366
369
- * < https://github.com/rspec/rspec >
370
- * < https://github.com/rspec/rspec-core >
371
- * < https://github.com/rspec/rspec-expectations >
372
- * < https://github.com/rspec/rspec-mocks >
367
+ * https://github.com/rspec/rspec
368
+ * https://github.com/rspec/rspec-core
369
+ * https://github.com/rspec/rspec-expectations
370
+ * https://github.com/rspec/rspec-mocks
373
371
374
372
### Recommended third-party extensions
375
373
0 commit comments