@@ -8,6 +8,7 @@ They’re also specifications (or _specs,_ for short):
8
8
detailed explanations of how the application is supposed to behave,
9
9
expressed in plain English.
10
10
11
+ Use ** [ ` rspec-rails ` 3.x] [ ] ** for Rails earlier than 5.0.
11
12
Use ** [ ` rspec-rails ` 1.x] [ ] ** for Rails 2.x.
12
13
13
14
[ Build Status ] : https://secure.travis-ci.org/rspec/rspec-rails.svg?branch=master
@@ -19,6 +20,7 @@ Use **[`rspec-rails` 1.x][]** for Rails 2.x.
19
20
[ RSpec ] : https://rspec.info/
20
21
[ Ruby on Rails ] : https://rubyonrails.org/
21
22
[ `rspec-rails` 1.x ] : https://github.com/dchelimsky/rspec-rails
23
+ [ `rspec-rails` 3.x ] : https://github.com/rspec/rspec-rails/tree/3-9-maintenance
22
24
23
25
## Installation
24
26
@@ -187,8 +189,8 @@ to test the various parts of a Rails system:
187
189
| [ ` be_a_new ` ] [ ] | | all | primarily intended for controller specs |
188
190
| [ ` render_template ` ] [ ] | ` assert_template ` | request / controller / view | use with ` expect(response).to ` |
189
191
| [ ` redirect_to ` ] [ ] | ` assert_redirect ` | request / controller | use with ` expect(response).to ` |
190
- | [ ` route_to ` ] | ` assert_routing ` | routing / controller | replaces ` route_for ` from version 1.x |
191
- | [ ` be_routable ` ] | | routing / controller | usu. for ` expect(...).not_to be_routable ` |
192
+ | [ ` route_to ` ] | ` assert_routing ` | routing / controller | use with ` expect(...).to route_to ` |
193
+ | [ ` be_routable ` ] | | routing / controller | use with ` expect(...).not_to be_routable ` |
192
194
| [ ` have_http_status ` ] [ ] | | request / controller / feature | |
193
195
| [ ` match_array ` ] [ ] | | all | for comparing arrays of ActiveRecord objects |
194
196
| [ ` have_been_enqueued ` ] [ ] | | all | requires config: ` ActiveJob::Base.queue_adapter = :test ` |
0 commit comments