Skip to content

Update docs for RSpec Rails 4.0 #2313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ They’re also specifications (or _specs,_ for short):
detailed explanations of how the application is supposed to behave,
expressed in plain English.

Use **[`rspec-rails` 3.x][]** for Rails earlier than 5.0.
Use **[`rspec-rails` 1.x][]** for Rails 2.x.

[Build Status]: https://secure.travis-ci.org/rspec/rspec-rails.svg?branch=master
Expand All @@ -19,6 +20,7 @@ Use **[`rspec-rails` 1.x][]** for Rails 2.x.
[RSpec]: https://rspec.info/
[Ruby on Rails]: https://rubyonrails.org/
[`rspec-rails` 1.x]: https://github.com/dchelimsky/rspec-rails
[`rspec-rails` 3.x]: https://github.com/rspec/rspec-rails/tree/3-9-maintenance

## Installation

Expand Down Expand Up @@ -190,8 +192,8 @@ to test the various parts of a Rails system:
| [`be_a_new`][] | | all | primarily intended for controller specs |
| [`render_template`][] | `assert_template` | request / controller / view | use with `expect(response).to` |
| [`redirect_to`][] | `assert_redirect` | request / controller | use with `expect(response).to` |
| [`route_to`] | `assert_routing` | routing / controller | replaces `route_for` from version 1.x |
| [`be_routable`] | | routing / controller | usu. for `expect(...).not_to be_routable` |
| [`route_to`] | `assert_routing` | routing / controller | use with `expect(...).to route_to` |
| [`be_routable`] | | routing / controller | use with `expect(...).not_to be_routable` |
| [`have_http_status`][] | | request / controller / feature | |
| [`match_array`][] | | all | for comparing arrays of ActiveRecord objects |
| [`have_been_enqueued`][] | | all | requires config: `ActiveJob::Base.queue_adapter = :test` |
Expand Down
2 changes: 1 addition & 1 deletion README_DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ Rails than you are trying to use now.
To run the specs against a different version of Rails, use the `thor` command:

```bash
bin/thor version:use 3.2.13
bin/thor version:use 6.0.2.2
bin/rake
```
121 changes: 0 additions & 121 deletions features/upgrade/from_1x_to_2x.md

This file was deleted.