@@ -27,14 +27,13 @@ According to [RSpec Rails new versioning strategy][] use:
27
27
[ `rspec-rails` 4.x ] : https://github.com/rspec/rspec-rails/tree/4-1-maintenance
28
28
[ `rspec-rails` 5.x ] : https://github.com/rspec/rspec-rails/tree/5-1-maintenance
29
29
[ `rspec-rails` 6.x ] : https://github.com/rspec/rspec-rails/tree/6-1-maintenance
30
- [ `rspec-rails` 7.x ] : https://github.com/rspec/rspec-rails/tree/7-0 -maintenance
30
+ [ `rspec-rails` 7.x ] : https://github.com/rspec/rspec-rails/tree/7-1 -maintenance
31
31
[ RSpec Rails new versioning strategy ] : https://github.com/rspec/rspec-rails/blob/main/rfcs/versioning-strategy.md
32
32
33
33
## Installation
34
34
35
- ** IMPORTANT** This README / branch refers to the 7.1.x stable release series, only bugfixes from this series will
36
- be added here. See the [ ` main ` branch on Github] ( https://github.com/rspec/rspec-rails/tree/main ) if you want or
37
- require the latest unstable features.
35
+ ** IMPORTANT** This README / branch refers to the current development build.
36
+ See the [ ` 7-1-maintenance ` branch on Github] ( https://github.com/rspec/rspec-rails/tree/7-1-maintenance ) if you want or require the latest stable release.
38
37
39
38
1 . Add ` rspec-rails ` to ** both** the ` :development ` and ` :test ` groups
40
39
of your app’s ` Gemfile ` :
@@ -89,7 +88,7 @@ read the [`rspec-rails` upgrade notes][] to find out what to watch out for.
89
88
90
89
Be sure to check the general [ RSpec upgrade notes] [ ] as well.
91
90
92
- [ `rspec-rails` upgrade notes ] : https://rspec.info/features/7-0 /rspec-rails/upgrade
91
+ [ `rspec-rails` upgrade notes ] : https://rspec.info/features/7-1 /rspec-rails/upgrade
93
92
[ RSpec upgrade notes ] : https://rspec.info/upgrading-from-rspec-2/
94
93
95
94
## Usage
@@ -211,22 +210,22 @@ to test the various parts of a Rails system:
211
210
Follow the links above for examples of how each matcher is used.
212
211
213
212
[ the matchers that come standard in RSpec ] : https://rspec.info/features/3-12/rspec-expectations/built-in-matchers
214
- [ `be_a_new` ] : https://rspec.info/features/7-0 /rspec-rails/matchers/new-record-matcher
215
- [ `render_template` ] : https://rspec.info/features/7-0 /rspec-rails/matchers/render-template-matcher
216
- [ `redirect_to` ] : https://rspec.info/features/7-0 /rspec-rails/matchers/redirect-to-matcher
217
- [ `route_to` ] : https://rspec.info/features/7-0 /rspec-rails/routing-specs/route-to-matcher
218
- [ `be_routable` ] : https://rspec.info/features/7-0 /rspec-rails/routing-specs/be-routable-matcher
219
- [ `have_http_status` ] : https://rspec.info/features/7-0 /rspec-rails/matchers/have-http-status-matcher
220
- [ `match_array` ] : https://rspec.info/features/7-0 /rspec-rails/matchers/relation-match-array
221
- [ `have_been_enqueued` ] : https://rspec.info/features/7-0 /rspec-rails/matchers/have-been-enqueued-matcher
222
- [ `have_enqueued_job` ] : https://rspec.info/features/7-0 /rspec-rails/matchers/have-enqueued-job-matcher
213
+ [ `be_a_new` ] : https://rspec.info/features/7-1 /rspec-rails/matchers/new-record-matcher
214
+ [ `render_template` ] : https://rspec.info/features/7-1 /rspec-rails/matchers/render-template-matcher
215
+ [ `redirect_to` ] : https://rspec.info/features/7-1 /rspec-rails/matchers/redirect-to-matcher
216
+ [ `route_to` ] : https://rspec.info/features/7-1 /rspec-rails/routing-specs/route-to-matcher
217
+ [ `be_routable` ] : https://rspec.info/features/7-1 /rspec-rails/routing-specs/be-routable-matcher
218
+ [ `have_http_status` ] : https://rspec.info/features/7-1 /rspec-rails/matchers/have-http-status-matcher
219
+ [ `match_array` ] : https://rspec.info/features/7-1 /rspec-rails/matchers/relation-match-array
220
+ [ `have_been_enqueued` ] : https://rspec.info/features/7-1 /rspec-rails/matchers/have-been-enqueued-matcher
221
+ [ `have_enqueued_job` ] : https://rspec.info/features/7-1 /rspec-rails/matchers/have-enqueued-job-matcher
223
222
224
223
### What else does RSpec Rails add?
225
224
226
225
For a comprehensive look at RSpec Rails’ features,
227
226
read the [ official Cucumber documentation] [ ] .
228
227
229
- [ official Cucumber documentation ] : https://rspec.info/features/7-0 /rspec-rails
228
+ [ official Cucumber documentation ] : https://rspec.info/features/7-1 /rspec-rails
230
229
231
230
## What tests should I write?
232
231
@@ -271,20 +270,20 @@ RSpec.describe User, type: :model do
271
270
...
272
271
```
273
272
274
- [ request ] : https://rspec.info/features/7-0 /rspec-rails/request-specs/request-spec
275
- [ feature ] : https://rspec.info/features/7-0 /rspec-rails/feature-specs/feature-spec
276
- [ system ] : https://rspec.info/features/7-0 /rspec-rails/system-specs/system-specs
277
- [ model ] : https://rspec.info/features/7-0 /rspec-rails/model-specs
278
- [ controller ] : https://rspec.info/features/7-0 /rspec-rails/controller-specs
279
- [ mailer ] : https://rspec.info/features/7-0 /rspec-rails/mailer-specs
280
- [ job ] : https://rspec.info/features/7-0 /rspec-rails/job-specs/job-spec
281
- [ view ] : https://rspec.info/features/7-0 /rspec-rails/view-specs/view-spec
282
- [ routing ] : https://rspec.info/features/7-0 /rspec-rails/routing-specs
283
- [ helper ] : https://rspec.info/features/7-0 /rspec-rails/helper-specs/helper-spec
273
+ [ request ] : https://rspec.info/features/7-1 /rspec-rails/request-specs/request-spec
274
+ [ feature ] : https://rspec.info/features/7-1 /rspec-rails/feature-specs/feature-spec
275
+ [ system ] : https://rspec.info/features/7-1 /rspec-rails/system-specs/system-specs
276
+ [ model ] : https://rspec.info/features/7-1 /rspec-rails/model-specs
277
+ [ controller ] : https://rspec.info/features/7-1 /rspec-rails/controller-specs
278
+ [ mailer ] : https://rspec.info/features/7-1 /rspec-rails/mailer-specs
279
+ [ job ] : https://rspec.info/features/7-1 /rspec-rails/job-specs/job-spec
280
+ [ view ] : https://rspec.info/features/7-1 /rspec-rails/view-specs/view-spec
281
+ [ routing ] : https://rspec.info/features/7-1 /rspec-rails/routing-specs
282
+ [ helper ] : https://rspec.info/features/7-1 /rspec-rails/helper-specs/helper-spec
284
283
[ `ActionDispatch::IntegrationTest` ] : https://api.rubyonrails.org/classes/ActionDispatch/IntegrationTest.html
285
284
[ `ActionDispatch::SystemTestCase` ] : https://api.rubyonrails.org/classes/ActionDispatch/SystemTestCase.html
286
285
[ `ActionController::TestCase` ] : https://api.rubyonrails.org/classes/ActionController/TestCase.html
287
- [ in the appropriate folder ] : https://rspec.info/features/7-0 /rspec-rails/directory-structure
286
+ [ in the appropriate folder ] : https://rspec.info/features/7-1 /rspec-rails/directory-structure
288
287
289
288
### System specs, feature specs, request specs–what’s the difference?
290
289
0 commit comments