@@ -20,20 +20,35 @@ Use **[`rspec-rails` 1.x][]** for Rails 2.x.
20
20
[ Ruby on Rails ] : https://rubyonrails.org/
21
21
[ `rspec-rails` 1.x ] : https://github.com/dchelimsky/rspec-rails
22
22
23
+ ## Important note for using 3.9.x
24
+
25
+ Development of the 3.x versions of ` rspec-rails ` ** has ended** . The last release was ` 3.9.1 ` .
26
+
27
+ Prior to version 4 of ` rspec-rails ` , it required the same "major minor" pair of other RSpec
28
+ gems. So you may need to run:
29
+
30
+ ```
31
+ bundle update rspec-rails rspec-core rspec-mocks rspec-expectations rspec-support
32
+ ```
33
+
34
+ To change to the 3.9.x series of ` rspec-rails ` .
35
+
23
36
## Installation
24
37
25
38
1 . Add ` rspec-rails ` to ** both** the ` :development ` and ` :test ` groups
26
39
of your app’s ` Gemfile ` :
27
40
28
41
``` ruby
29
- # Run against the latest stable release
42
+ # Run against the last stable release in 3.9.x, see the `main` branch
43
+ # for instructions for the current release of `rspec-rails`.
30
44
group :development , :test do
31
- gem ' rspec-rails' , ' ~> 3.9'
45
+ gem ' rspec-rails' , ' ~> 3.9.1 '
32
46
end
33
47
34
- # Or, run against the maintenance branch
35
- # (requires the same maintenance branch for all related RSpec libraries)
36
- # Note that 3.9 is end of life and all changes have been released.
48
+ # Or, run against the maintenance branch (requires the same
49
+ # maintenance branch for all related RSpec libraries)
50
+ #
51
+ # **Note:** There are no unreleased changes in this branch, it exists for legacy builds pointing to it.
37
52
group :development , :test do
38
53
%w[rspec-core rspec-expectations rspec-mocks rspec-rails rspec-support] .each do |lib |
39
54
gem lib, :git => " https://github.com/rspec/#{ lib } .git" , :branch => ' 3-9-maintenance'
0 commit comments