Skip to content

Commit b5cedde

Browse files
committed
v4.0.0
1 parent e886b55 commit b5cedde

File tree

3 files changed

+40
-72
lines changed

3 files changed

+40
-72
lines changed

Changelog.md

Lines changed: 38 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,9 @@
1-
### 4.0.0.rc1 / 2020-03-13
2-
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0.beta4...v4.0.0.rc1)
3-
4-
Enhancements:
5-
6-
* Allow `ActiveJob` matchers `#on_queue` modifier to take symbolic queue names. (Nils Sommer, #2283)
7-
* The scaffold generator now generates request specs in preference to controller specs.
8-
(Luka Lüdicke, #2288)
9-
* Add configuration option to disable ActiveRecord. (Jon Rowe, Phil Pirozhkov, Hermann Mayer, #2266)
10-
* Set `ActionDispatch::SystemTesting::Server.silence_puma = true` when running system specs.
11-
(ta1kt0me, Benoit Tigeot, #2289)
12-
13-
Bug Fixes:
14-
15-
* Restore previous conditional check for setting `default_url_options` in feature
16-
specs, prevents a `NoMethodError` in some scenarios. (Eugene Kenny, #2277)
17-
* Allow changing `ActiveJob::Base.queue_adapter` inside a system spec.
18-
(Jonathan Rochkind, #2242)
19-
* `rails generate generator` command now creates related spec file (Joel Azemar, #2217)
20-
* Relax upper `capybara` version constraint to allow for Capybara 3.x (Phil Pirozhkov, #2281)
21-
* Clear ActionMailer test mailbox after each example (Benoit Tigeot, #2293)
22-
23-
### 4.0.0.beta4
24-
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0.beta3...v4.0.0.beta4)
25-
26-
Enhancements:
27-
28-
* Add argument matcher support to `have_enqueued_*` matchers. (Phil Pirozhkov, #2206)
29-
* Switch generated templates to use ruby 1.9 hash keys. (Tanbir Hasan, #2224)
30-
* Add `have_been_performed`/`have_performed_job`/`perform_job` ActiveJob
31-
matchers (Isaac Seymour, #1785)
32-
* Default to generating request specs rather than controller specs when
33-
generating a controller (Luka Lüdicke, #2222)
34-
35-
Bug Fixes:
36-
37-
* Prevent `driven_by(:selenium)` being called due to hook precedence.
38-
(Takumi Shotoku, #2188)
39-
* Prevent a `WrongScopeError` being thrown during loading fixtures on Rails
40-
6.1 development version. (Edouard Chin, #2215)
41-
* Fix Mocha mocking support with `should`. (Phil Pirozhkov, #2256)
42-
43-
### 4.0.0.beta3
44-
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0.beta2...v4.0.0.beta3)
1+
### 4.0.0 / 2020-03-24
2+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.9.1...v4.0.0)
453

464
Enhancements:
475

6+
* Adds support for Rails 6. (Penelope Phippen, Benoit Tigeot, Jon Rowe, #2071)
487
* Adds support for JRuby on Rails 5.2 and 6
498
* Add support for parameterised mailers (Ignatius Reza, #2125)
509
* Add ActionMailbox spec helpers and test type (James Dabbs, #2119)
@@ -55,28 +14,18 @@ Enhancements:
5514
* Improve path parsing in view specs render options. (John Hawthorn, #2115)
5615
* Add routing spec template as an option for generating controller specs.
5716
(David Revelo, #2134)
58-
59-
Bug Fixes:
60-
61-
* Replace `before_teardown` as well as `after_teardown` to ensure screenshots
62-
are generated correctly. (Jon Rowe, #2164)
63-
* `ActionView::FixtureResolver#hash` has been renamed to `ActionView::FixtureResolver#data`.
64-
(Penelope Phippen, #2076)
65-
* Add missing require for `have_enqueued_mail` matcher. (Ignatius Reza, #2117)
66-
67-
### 4.0.0.beta2
68-
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0.beta1...v4.0.0.beta2)
69-
70-
Bug Fixes:
71-
72-
* Fix version dependencies in gemspec.
73-
74-
### 4.0.0.beta1
75-
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.9.0...v4.0.0.beta1)
76-
77-
Enhancements:
78-
79-
* Adds support for Rails 6. (Penelope Phippen, Benoit Tigeot, Jon Rowe, #2071)
17+
* Add argument matcher support to `have_enqueued_*` matchers. (Phil Pirozhkov, #2206)
18+
* Switch generated templates to use ruby 1.9 hash keys. (Tanbir Hasan, #2224)
19+
* Add `have_been_performed`/`have_performed_job`/`perform_job` ActiveJob
20+
matchers (Isaac Seymour, #1785)
21+
* Default to generating request specs rather than controller specs when
22+
generating a controller (Luka Lüdicke, #2222)
23+
* Allow `ActiveJob` matchers `#on_queue` modifier to take symbolic queue names. (Nils Sommer, #2283)
24+
* The scaffold generator now generates request specs in preference to controller specs.
25+
(Luka Lüdicke, #2288)
26+
* Add configuration option to disable ActiveRecord. (Jon Rowe, Phil Pirozhkov, Hermann Mayer, #2266)
27+
* Set `ActionDispatch::SystemTesting::Server.silence_puma = true` when running system specs.
28+
(ta1kt0me, Benoit Tigeot, #2289)
8029

8130
Bug Fixes:
8231

@@ -86,12 +35,35 @@ Bug Fixes:
8635
deprecated. (Pavel Rosický, #2092)
8736
* `ActionView::Template#formats` has been deprecated and replaced by
8837
`ActionView::Template#format`(Seb Jacobs, #2100)
38+
* Replace `before_teardown` as well as `after_teardown` to ensure screenshots
39+
are generated correctly. (Jon Rowe, #2164)
40+
* `ActionView::FixtureResolver#hash` has been renamed to `ActionView::FixtureResolver#data`.
41+
(Penelope Phippen, #2076)
42+
* Prevent `driven_by(:selenium)` being called due to hook precedence.
43+
(Takumi Shotoku, #2188)
44+
* Prevent a `WrongScopeError` being thrown during loading fixtures on Rails
45+
6.1 development version. (Edouard Chin, #2215)
46+
* Fix Mocha mocking support with `should`. (Phil Pirozhkov, #2256)
47+
* Restore previous conditional check for setting `default_url_options` in feature
48+
specs, prevents a `NoMethodError` in some scenarios. (Eugene Kenny, #2277)
49+
* Allow changing `ActiveJob::Base.queue_adapter` inside a system spec.
50+
(Jonathan Rochkind, #2242)
51+
* `rails generate generator` command now creates related spec file (Joel Azemar, #2217)
52+
* Relax upper `capybara` version constraint to allow for Capybara 3.x (Phil Pirozhkov, #2281)
53+
* Clear ActionMailer test mailbox after each example (Benoit Tigeot, #2293)
8954

9055
Breaking Changes:
9156

9257
* Drops support for Rails below 5.0
9358
* Drops support for Ruby below 2.3
9459

60+
### 3.9.1 / 2020-03-10
61+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.9.0...v3.9.1)
62+
63+
Bug Fixes:
64+
65+
* Add missing require for have_enqueued_mail matcher. (Ignatius Reza, #2117)
66+
9567
### 3.9.0 / 2019-10-08
9668
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.3...v3.9.0)
9769

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,14 @@ Use **[`rspec-rails` 1.x][]** for Rails 2.x.
2222

2323
## Installation
2424

25-
**IMPORTANT** Note that rspec-rails 4.0 is still a release candidate whilst we work out some
26-
breaking changes. See the `3-9-maintenance` branch on Github if you want or require
27-
the latest stable release.
2825

2926
1. Add `rspec-rails` to **both** the `:development` and `:test` groups
3027
of your app’s `Gemfile`:
3128

3229
```ruby
3330
# Run against the latest stable release
3431
group :development, :test do
35-
# Note that rspec-rails 4.0 is still a pre release
36-
gem 'rspec-rails', '~> 4.0.0.rc1'
32+
gem 'rspec-rails', '~> 4.0.0'
3733
end
3834

3935
# Or, run against the master branch

lib/rspec/rails/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Rails
33
# Version information for RSpec Rails.
44
module Version
55
# Current version of RSpec Rails, in semantic versioning format.
6-
STRING = '4.0.0.pre'
6+
STRING = '4.0.0'
77
end
88
end
99
end

0 commit comments

Comments
 (0)