@@ -8,6 +8,7 @@ They’re also specifications (or _specs,_ for short):
88detailed explanations of how the application is supposed to behave,
99expressed in plain English.
1010
11+ Use ** [ ` rspec-rails ` 3.x] [ ] ** for Rails earlier than 5.0.
1112Use ** [ ` rspec-rails ` 1.x] [ ] ** for Rails 2.x.
1213
1314[ 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.
1920[ RSpec ] : https://rspec.info/
2021[ Ruby on Rails ] : https://rubyonrails.org/
2122[ `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
2224
2325## Installation
2426
@@ -190,8 +192,8 @@ to test the various parts of a Rails system:
190192| [ ` be_a_new ` ] [ ] | | all | primarily intended for controller specs |
191193| [ ` render_template ` ] [ ] | ` assert_template ` | request / controller / view | use with ` expect(response).to ` |
192194| [ ` redirect_to ` ] [ ] | ` assert_redirect ` | request / controller | use with ` expect(response).to ` |
193- | [ ` route_to ` ] | ` assert_routing ` | routing / controller | replaces ` route_for ` from version 1.x |
194- | [ ` be_routable ` ] | | routing / controller | usu. for ` expect(...).not_to be_routable ` |
195+ | [ ` route_to ` ] | ` assert_routing ` | routing / controller | use with ` expect(...).to route_to ` |
196+ | [ ` be_routable ` ] | | routing / controller | use with ` expect(...).not_to be_routable ` |
195197| [ ` have_http_status ` ] [ ] | | request / controller / feature | |
196198| [ ` match_array ` ] [ ] | | all | for comparing arrays of ActiveRecord objects |
197199| [ ` have_been_enqueued ` ] [ ] | | all | requires config: ` ActiveJob::Base.queue_adapter = :test ` |
0 commit comments