rspec-rails 6.1.2 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Changelog.md +272 -195
- data/README.md +28 -29
- data/lib/generators/rspec/install/templates/spec/rails_helper.rb +17 -10
- data/lib/generators/rspec/mailer/templates/preview.rb +2 -2
- data/lib/generators/rspec/scaffold/templates/controller_spec.rb +0 -15
- data/lib/generators/rspec/scaffold/templates/index_spec.rb +1 -1
- data/lib/generators/rspec/scaffold/templates/request_spec.rb +0 -15
- data/lib/rspec/rails/example/rails_example_group.rb +5 -7
- data/lib/rspec/rails/example/system_example_group.rb +9 -1
- data/lib/rspec/rails/fixture_support.rb +1 -2
- data/lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb +10 -3
- data/lib/rspec/rails/matchers/action_cable.rb +6 -1
- data/lib/rspec/rails/matchers/active_job.rb +69 -8
- data/lib/rspec/rails/matchers/have_enqueued_mail.rb +37 -5
- data/lib/rspec/rails/matchers/have_http_status.rb +3 -7
- data/lib/rspec/rails/tasks/rspec.rake +3 -1
- data/lib/rspec/rails/version.rb +1 -1
- data/lib/rspec-rails.rb +17 -0
- data.tar.gz.sig +0 -0
- metadata +30 -35
- metadata.gz.sig +0 -0
- data/lib/generators/rspec/integration/integration_generator.rb +0 -29
data/Changelog.md
CHANGED
@@ -1,13 +1,90 @@
|
|
1
1
|
### Development
|
2
|
-
[Full Changelog](https://github.com/rspec/rspec-rails/compare/
|
2
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v7.1.1...7-1-maintenance)
|
3
|
+
|
4
|
+
### 7.1.1 / 2025-02-06
|
5
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v7.1.0...v7.1.1)
|
6
|
+
|
7
|
+
Bug Fixes:
|
8
|
+
|
9
|
+
* Check wether rspec-mocks has been loaded before enabling signature
|
10
|
+
verification for `have_enqueued_job` et al (Jon Rowe, rspec/rspec-rails#2823)
|
11
|
+
|
12
|
+
### 7.1.0 / 2024-11-09
|
13
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v7.0.2...v7.1.0)
|
14
|
+
|
15
|
+
Enhancements:
|
16
|
+
|
17
|
+
* Improve implicit description for ActionCable matchers `have_broadcasted_to` /
|
18
|
+
`have_broadcast`. (Simon Fish, rspec/rspec-rails#2795)
|
19
|
+
* Comment out `infer_spec_type_from_file_location!` in newly generated
|
20
|
+
`rails_helper.rb` files. (Jon Rowe, rspec/rspec-rails#2804)
|
21
|
+
* Allow turning off active job / mailer argument validation.
|
22
|
+
(Oli Peate, rspec/rspec-rails#2808)
|
23
|
+
|
24
|
+
### 7.0.2 / 2024-11-09
|
25
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v7.0.1...v7.0.2)
|
26
|
+
|
27
|
+
Bug Fixes:
|
28
|
+
|
29
|
+
* Fix issue with `have_enqueued_mail` when jobs were incorrectly matched due
|
30
|
+
to refactoring in rspec/rspec-rails#2780. (David Runger, rspec/rspec-rails#2793)
|
31
|
+
|
32
|
+
### 7.0.1 / 2024-09-03
|
33
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v7.0.0...v7.0.1)
|
34
|
+
|
35
|
+
Bug Fixes:
|
36
|
+
|
37
|
+
* Remove mutation of Rails constant in favour of public api. (Petrik de Heus, rspec/rspec-rails#2789)
|
38
|
+
* Cleanup Rails scaffold for unsupported versions. (Matt Jankowski, rspec/rspec-rails#2790)
|
39
|
+
* Remove deprecated scaffold that was unintentionally included in 7.0.0
|
40
|
+
(Jon Rowe, rspec/rspec-rails#2791)
|
41
|
+
|
42
|
+
### 7.0.0 / 2024-09-02
|
43
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.5...v7.0.0)
|
44
|
+
|
45
|
+
Enhancements:
|
46
|
+
|
47
|
+
* Change default driver for system specs on Rails 7.2 to match its default.
|
48
|
+
(Steve Polito, rspec/rspec-rails#2746)
|
49
|
+
* Verify ActiveJob arguments by comparing to the method signature. (Oli Peate, rspec/rspec-rails#2745)
|
50
|
+
* Add suggestion to rails_helper.rb to skip when not in test mode. (Glauco Custódio, rspec/rspec-rails#2751)
|
51
|
+
* Add `at_priority` qualifier to `have_enqueued_job` set of matchers. (mbajur, rspec/rspec-rails#2759)
|
52
|
+
* Add spec directories to `rails stats` on Rails main / 8.0.0. (Petrik de Heus, rspec/rspec-rails#2781)
|
53
|
+
|
54
|
+
### 6.1.5 / 2024-09-02
|
55
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.4...v6.1.5)
|
56
|
+
|
57
|
+
Bug Fixes:
|
58
|
+
|
59
|
+
* Restore old order of requiring support files. (Franz Liedke, rspec/rspec-rails#2785)
|
60
|
+
* Prevent running `rake spec:statsetup` on Rails main / 8.0.0. (Petrik de Heus, rspec/rspec-rails#2781)
|
61
|
+
|
62
|
+
### 6.1.4 / 2024-08-15
|
63
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.3...v6.1.4)
|
64
|
+
|
65
|
+
Bug Fixes:
|
66
|
+
|
67
|
+
* Prevent `have_http_status` matcher raising an error when encountering a raw `Rack::MockResponse`.
|
68
|
+
(Christophe Bliard, rspec/rspec-rails#2771)
|
69
|
+
* Move Rails version conditional from index scaffold generated file to template. (Matt Jankowski, rspec/rspec-rails#2777)
|
70
|
+
|
71
|
+
### 6.1.3 / 2024-06-19
|
72
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.2...v6.1.3)
|
73
|
+
|
74
|
+
Bug Fixes:
|
75
|
+
|
76
|
+
* Reset `ActiveSupport::CurrentAttributes` between examples. (Javier Julio, rspec/rspec-rails#2752)
|
77
|
+
* Fix a broken link in generated mailer previews. (Chiara Núñez, rspec/rspec-rails#2764)
|
78
|
+
* Fix `have_status_code` behaviour with deprecated status names by delegating
|
79
|
+
to `Rack::Utils.status_code/1` to set the expected status code. (Darren Boyd, rspec/rspec-rails#2765)
|
3
80
|
|
4
81
|
### 6.1.2 / 2024-03-19
|
5
82
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.1...v6.1.2)
|
6
83
|
|
7
84
|
Bug Fixes:
|
8
85
|
|
9
|
-
* Fix generated mailer paths to match Rails convention. (Patrício dos Santos, #2735)
|
10
|
-
* Fix class in template for generator specs. (Nicolas Buduroi, #2744)
|
86
|
+
* Fix generated mailer paths to match Rails convention. (Patrício dos Santos, rspec/rspec-rails#2735)
|
87
|
+
* Fix class in template for generator specs. (Nicolas Buduroi, rspec/rspec-rails#2744)
|
11
88
|
|
12
89
|
### 6.1.1 / 2024-01-25
|
13
90
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.0...v6.1.1)
|
@@ -15,8 +92,8 @@ Bug Fixes:
|
|
15
92
|
Bug Fixes:
|
16
93
|
|
17
94
|
* Improved deprecation message for `RSpec::Rails::Configuration.fixture_paths`
|
18
|
-
(Benoit Tigeot, #2720)
|
19
|
-
* Fix support for namespaced fixtures in Rails 7.1. (Benedikt Deicke, #2716)
|
95
|
+
(Benoit Tigeot, rspec/rspec-rails#2720)
|
96
|
+
* Fix support for namespaced fixtures in Rails 7.1. (Benedikt Deicke, rspec/rspec-rails#2716)
|
20
97
|
|
21
98
|
### 6.1.0 / 2023-11-21
|
22
99
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.4...v6.1.0)
|
@@ -25,17 +102,17 @@ Enhancements:
|
|
25
102
|
|
26
103
|
* Support for Rails 7.1
|
27
104
|
* Minor tweak to generated `rails_helper.rb` to use `Rails.root.join`.
|
28
|
-
(@masato-bkn, Ryo Nakamura, #2640, #2678)
|
105
|
+
(@masato-bkn, Ryo Nakamura, rspec/rspec-rails#2640, rspec/rspec-rails#2678)
|
29
106
|
* Add `RSpec::Rails::Configuration.fixture_paths` configuration to support
|
30
107
|
the matching change to `ActiveRecord::TestFixtures`, previous singular
|
31
|
-
form is deprecated and will be removed in Rails 7.2. (Juan Gueçaimburu, #2673)
|
108
|
+
form is deprecated and will be removed in Rails 7.2. (Juan Gueçaimburu, rspec/rspec-rails#2673)
|
32
109
|
* Add `send_email` matcher to match emails rather than specific jobs.
|
33
|
-
(Andrei Kaleshka, #2670)
|
110
|
+
(Andrei Kaleshka, rspec/rspec-rails#2670)
|
34
111
|
* When using `render` in view specs, `:locals` will now be merged into the
|
35
112
|
default implicit template, allowing `render locals: {...}` style calls.
|
36
|
-
(Jon Rowe, #2686)
|
113
|
+
(Jon Rowe, rspec/rspec-rails#2686)
|
37
114
|
* Add support for `Rails.config.action_mailer.preview_paths` on Rails 7.1/
|
38
|
-
(Jon Rowe, #2706)
|
115
|
+
(Jon Rowe, rspec/rspec-rails#2706)
|
39
116
|
|
40
117
|
### 6.0.4 / 2023-11-21
|
41
118
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.3...v6.0.4)
|
@@ -43,14 +120,14 @@ Enhancements:
|
|
43
120
|
Bug Fixes:
|
44
121
|
|
45
122
|
* Fuzzy match `have_broadcasted_to` so that argument matchers can be used.
|
46
|
-
(Timothy Peraza, #2684)
|
47
|
-
* Fix fixture warning during `:context` hooks on Rails `main`. (Jon Rowe, #2685)
|
48
|
-
* Fix `stub_template` on Rails `main`. (Jon Rowe, #2685)
|
49
|
-
* Fix variable name in scaffolded view specs when namespaced. (Taketo Takashima, #2694)
|
123
|
+
(Timothy Peraza, rspec/rspec-rails#2684)
|
124
|
+
* Fix fixture warning during `:context` hooks on Rails `main`. (Jon Rowe, rspec/rspec-rails#2685)
|
125
|
+
* Fix `stub_template` on Rails `main`. (Jon Rowe, rspec/rspec-rails#2685)
|
126
|
+
* Fix variable name in scaffolded view specs when namespaced. (Taketo Takashima, rspec/rspec-rails#2694)
|
50
127
|
* Prevent `take_failed_screenshot` producing an additional error through `metadata`
|
51
|
-
access. (Jon Rowe, #2704)
|
52
|
-
* Use `ActiveSupport::ExecutionContext::TestHelper` on Rails 7+. (Jon Rowe, #2711)
|
53
|
-
* Fix leak of templates stubbed with `stub_template` on Rails 7.1. (Jon Rowe, #2714)
|
128
|
+
access. (Jon Rowe, rspec/rspec-rails#2704)
|
129
|
+
* Use `ActiveSupport::ExecutionContext::TestHelper` on Rails 7+. (Jon Rowe, rspec/rspec-rails#2711)
|
130
|
+
* Fix leak of templates stubbed with `stub_template` on Rails 7.1. (Jon Rowe, rspec/rspec-rails#2714)
|
54
131
|
|
55
132
|
### 6.0.3 / 2023-05-31
|
56
133
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.2...v6.0.3)
|
@@ -58,8 +135,8 @@ Bug Fixes:
|
|
58
135
|
Bug Fixes:
|
59
136
|
|
60
137
|
* Set `ActiveStorage::FixtureSet.file_fixture_path` when including file fixture support.
|
61
|
-
(Jason Yates, #2671)
|
62
|
-
* Allow `broadcast_to` matcher to take Symbols. (@Vagab, #2680)
|
138
|
+
(Jason Yates, rspec/rspec-rails#2671)
|
139
|
+
* Allow `broadcast_to` matcher to take Symbols. (@Vagab, rspec/rspec-rails#2680)
|
63
140
|
|
64
141
|
### 6.0.2 / 2023-05-04
|
65
142
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.1...v6.0.2)
|
@@ -67,18 +144,18 @@ Bug Fixes:
|
|
67
144
|
Bug Fixes:
|
68
145
|
|
69
146
|
* Fix ActionView::PathSet when `render_views` is off for Rails 7.1.
|
70
|
-
(Eugene Kenny, Iliana, #2631)
|
147
|
+
(Eugene Kenny, Iliana, rspec/rspec-rails#2631)
|
71
148
|
* Support Rails 7.1's `#fixtures_paths` in example groups (removes a deprecation warning).
|
72
|
-
(Nicholas Simmons, #2664)
|
149
|
+
(Nicholas Simmons, rspec/rspec-rails#2664)
|
73
150
|
* Fix `have_enqueued_job` to properly detect enqueued jobs when other jobs were
|
74
|
-
performed inside the expectation block. (Slava Kardakov, Phil Pirozhkov, #2573)
|
151
|
+
performed inside the expectation block. (Slava Kardakov, Phil Pirozhkov, rspec/rspec-rails#2573)
|
75
152
|
|
76
153
|
### 6.0.1 / 2022-10-18
|
77
154
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.0...v6.0.1)
|
78
155
|
|
79
156
|
Bug Fixes:
|
80
157
|
|
81
|
-
* Prevent tagged logged support in Rails 7 calling `#name`. (Jon Rowe, #2625)
|
158
|
+
* Prevent tagged logged support in Rails 7 calling `#name`. (Jon Rowe, rspec/rspec-rails#2625)
|
82
159
|
|
83
160
|
### 6.0.0 / 2022-10-10
|
84
161
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.2...v6.0.0)
|
@@ -86,29 +163,29 @@ Bug Fixes:
|
|
86
163
|
Enhancements:
|
87
164
|
|
88
165
|
* Support Rails 7
|
89
|
-
* Template tweaks to remove instance variables from generated specs. (Takuma Ishikawa, #2599)
|
90
|
-
* Generators now respects default path configuration option. (@vivekmiyani, #2508)
|
166
|
+
* Template tweaks to remove instance variables from generated specs. (Takuma Ishikawa, rspec/rspec-rails#2599)
|
167
|
+
* Generators now respects default path configuration option. (@vivekmiyani, rspec/rspec-rails#2508)
|
91
168
|
|
92
169
|
Breaking Changes:
|
93
170
|
|
94
171
|
* Drop support for Rails below 6.1
|
95
172
|
* Drop support for Ruby below 2.5 (following supported versions of Rails 6.1)
|
96
173
|
* Change the order of `after_teardown` from `after` to `around` in system
|
97
|
-
specs to improve compatibility with extensions and Capybara. (Tim Diggins, #2596)
|
174
|
+
specs to improve compatibility with extensions and Capybara. (Tim Diggins, rspec/rspec-rails#2596)
|
98
175
|
|
99
176
|
Deprecations:
|
100
177
|
|
101
178
|
* Deprecates integration spec generator (`rspec:integration`)
|
102
179
|
which was an alias of request spec generator (`rspec:request`)
|
103
|
-
(Luka Lüdicke, #2374)
|
180
|
+
(Luka Lüdicke, rspec/rspec-rails#2374)
|
104
181
|
|
105
182
|
### 5.1.2 / 2022-04-24
|
106
183
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.1...v5.1.2)
|
107
184
|
|
108
185
|
Bug Fixes:
|
109
186
|
|
110
|
-
* Fix controller scaffold templates parameter name. (Taketo Takashima, #2591)
|
111
|
-
* Include generator specs in the inferred list of specs. (Jason Karns, #2597)
|
187
|
+
* Fix controller scaffold templates parameter name. (Taketo Takashima, rspec/rspec-rails#2591)
|
188
|
+
* Include generator specs in the inferred list of specs. (Jason Karns, rspec/rspec-rails#2597)
|
112
189
|
|
113
190
|
### 5.1.1 / 2022-03-07
|
114
191
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.0...v5.1.1)
|
@@ -116,7 +193,7 @@ Bug Fixes:
|
|
116
193
|
Bug Fixes:
|
117
194
|
|
118
195
|
* Properly handle global id serialised arguments in `have_enqueued_mail`.
|
119
|
-
(Jon Rowe, #2578)
|
196
|
+
(Jon Rowe, rspec/rspec-rails#2578)
|
120
197
|
|
121
198
|
### 5.1.0 / 2022-01-26
|
122
199
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.3...v5.1.0)
|
@@ -124,9 +201,9 @@ Bug Fixes:
|
|
124
201
|
Enhancements:
|
125
202
|
|
126
203
|
* Make the API request scaffold template more consistent and compatible with
|
127
|
-
Rails 6.1. (Naoto Hamada, #2484)
|
204
|
+
Rails 6.1. (Naoto Hamada, rspec/rspec-rails#2484)
|
128
205
|
* Change the scaffold `rails_helper.rb` template to use `require_relative`.
|
129
|
-
(Jon Dufresne, #2528)
|
206
|
+
(Jon Dufresne, rspec/rspec-rails#2528)
|
130
207
|
|
131
208
|
### 5.0.3 / 2022-01-26
|
132
209
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.2...v5.0.3)
|
@@ -134,10 +211,10 @@ Enhancements:
|
|
134
211
|
Bug Fixes:
|
135
212
|
|
136
213
|
* Properly name params in controller and request spec templates when
|
137
|
-
using the `--model-name` parameter. (@kenzo-tanaka, #2534)
|
214
|
+
using the `--model-name` parameter. (@kenzo-tanaka, rspec/rspec-rails#2534)
|
138
215
|
* Fix parameter matching with mail delivery job and
|
139
|
-
ActionMailer::MailDeliveryJob. (Fabio Napoleoni, #2516, #2546)
|
140
|
-
* Fix Rails 7 `have_enqueued_mail` compatibility (Mikael Henriksson, #2537, #2546)
|
216
|
+
ActionMailer::MailDeliveryJob. (Fabio Napoleoni, rspec/rspec-rails#2516, rspec/rspec-rails#2546)
|
217
|
+
* Fix Rails 7 `have_enqueued_mail` compatibility (Mikael Henriksson, rspec/rspec-rails#2537, rspec/rspec-rails#2546)
|
141
218
|
|
142
219
|
### 5.0.2 / 2021-08-14
|
143
220
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.1...v5.0.2)
|
@@ -145,12 +222,12 @@ Bug Fixes:
|
|
145
222
|
Bug Fixes:
|
146
223
|
|
147
224
|
* Prevent generated job specs from duplicating `_job` in filenames.
|
148
|
-
(Nick Flückiger, #2496)
|
225
|
+
(Nick Flückiger, rspec/rspec-rails#2496)
|
149
226
|
* Fix `ActiveRecord::TestFixture#uses_transaction` by using example description
|
150
227
|
to replace example name rather than example in our monkey patched
|
151
|
-
`run_in_transaction?` method. (Stan Lo, #2495)
|
228
|
+
`run_in_transaction?` method. (Stan Lo, rspec/rspec-rails#2495)
|
152
229
|
* Prevent keyword arguments being lost when methods are invoked dynamically
|
153
|
-
in controller specs. (Josh Cheek, #2509, #2514)
|
230
|
+
in controller specs. (Josh Cheek, rspec/rspec-rails#2509, rspec/rspec-rails#2514)
|
154
231
|
|
155
232
|
### 5.0.1 / 2021-03-18
|
156
233
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.0...v5.0.1)
|
@@ -158,15 +235,15 @@ Bug Fixes:
|
|
158
235
|
Bug Fixes:
|
159
236
|
|
160
237
|
* Limit multibyte example descriptions when used in system tests for #method_name
|
161
|
-
which ends up as screenshot names etc. (@y-yagi, #2405, #2487)
|
238
|
+
which ends up as screenshot names etc. (@y-yagi, rspec/rspec-rails#2405, rspec/rspec-rails#2487)
|
162
239
|
|
163
240
|
### 5.0.0 / 2021-03-09
|
164
241
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.1.1...v5.0.0)
|
165
242
|
|
166
243
|
Enhancements:
|
167
244
|
|
168
|
-
* Support new #file_fixture_path and new fixture test support code. (Jon Rowe, #2398)
|
169
|
-
* Support for Rails 6.1. (Benoit Tigeot, Jon Rowe, Phil Pirozhkov, and more #2398)
|
245
|
+
* Support new #file_fixture_path and new fixture test support code. (Jon Rowe, rspec/rspec-rails#2398)
|
246
|
+
* Support for Rails 6.1. (Benoit Tigeot, Jon Rowe, Phil Pirozhkov, and more rspec/rspec-rails#2398)
|
170
247
|
|
171
248
|
Breaking Changes:
|
172
249
|
|
@@ -177,102 +254,102 @@ Breaking Changes:
|
|
177
254
|
Bug Fixes:
|
178
255
|
|
179
256
|
* Remove generated specs when destroying a generated controller.
|
180
|
-
(@Naokimi, #2475)
|
257
|
+
(@Naokimi, rspec/rspec-rails#2475)
|
181
258
|
|
182
259
|
### 4.1.0 / 2021-03-06
|
183
260
|
|
184
261
|
Enhancements:
|
185
262
|
|
186
263
|
* Issue a warning when using job matchers with `#at` mismatch on `usec` precision.
|
187
|
-
(Jon Rowe, #2350)
|
264
|
+
(Jon Rowe, rspec/rspec-rails#2350)
|
188
265
|
* Generated request specs now have a bare `_spec` suffix instead of `request_spec`.
|
189
|
-
(Eloy Espinaco, Luka Lüdicke, #2355, #2356, #2378)
|
266
|
+
(Eloy Espinaco, Luka Lüdicke, rspec/rspec-rails#2355, rspec/rspec-rails#2356, rspec/rspec-rails#2378)
|
190
267
|
* Generated scaffold now includes engine route helpers when inside a mountable engine.
|
191
|
-
(Andrew W. Lee, #2372)
|
268
|
+
(Andrew W. Lee, rspec/rspec-rails#2372)
|
192
269
|
* Improve request spec "controller" scaffold when no action is specified.
|
193
|
-
(Thomas Hareau, #2399)
|
194
|
-
* Introduce testing snippets concept (Phil Pirozhkov, Benoit Tigeot, #2423)
|
270
|
+
(Thomas Hareau, rspec/rspec-rails#2399)
|
271
|
+
* Introduce testing snippets concept (Phil Pirozhkov, Benoit Tigeot, rspec/rspec-rails#2423)
|
195
272
|
* Prevent collisions with `let(:name)` for Rails 6.1 and `let(:method_name)` on older
|
196
|
-
Rails. (Benoit Tigeot, #2461)
|
273
|
+
Rails. (Benoit Tigeot, rspec/rspec-rails#2461)
|
197
274
|
|
198
275
|
### 4.0.2 / 2020-12-26
|
199
276
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.1...v4.0.2)
|
200
277
|
|
201
278
|
Bug Fixes:
|
202
279
|
|
203
|
-
* Indent all extra failure lines output from system specs. (Alex Robbin, #2321)
|
204
|
-
* Generated request spec for update now uses the correct let. (Paul Hanyzewski, #2344)
|
280
|
+
* Indent all extra failure lines output from system specs. (Alex Robbin, rspec/rspec-rails#2321)
|
281
|
+
* Generated request spec for update now uses the correct let. (Paul Hanyzewski, rspec/rspec-rails#2344)
|
205
282
|
* Return `true`/`false` from predicate methods in config rather than raw values.
|
206
|
-
(Phil Pirozhkov, Jon Rowe, #2353, #2354)
|
283
|
+
(Phil Pirozhkov, Jon Rowe, rspec/rspec-rails#2353, rspec/rspec-rails#2354)
|
207
284
|
* Remove old #fixture_path feature detection code which broke under newer Rails.
|
208
|
-
(Koen Punt, Jon Rowe, #2370)
|
209
|
-
* Fix an error when `use_active_record` is `false` (Phil Pirozhkov, #2423)
|
285
|
+
(Koen Punt, Jon Rowe, rspec/rspec-rails#2370)
|
286
|
+
* Fix an error when `use_active_record` is `false` (Phil Pirozhkov, rspec/rspec-rails#2423)
|
210
287
|
|
211
288
|
### 4.0.1 / 2020-05-16
|
212
289
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0...v4.0.1)
|
213
290
|
|
214
291
|
Bug Fixes:
|
215
292
|
|
216
|
-
* Remove warning when calling `driven_by` in system specs. (Aubin Lorieux, #2302)
|
217
|
-
* Fix comparison of times for `#at` in job matchers. (Jon Rowe, Markus Doits, #2304)
|
293
|
+
* Remove warning when calling `driven_by` in system specs. (Aubin Lorieux, rspec/rspec-rails#2302)
|
294
|
+
* Fix comparison of times for `#at` in job matchers. (Jon Rowe, Markus Doits, rspec/rspec-rails#2304)
|
218
295
|
* Allow `have_enqueued_mail` to match when a sub class of `ActionMailer::DeliveryJob`
|
219
|
-
is set using `<Class>.delivery_job=`. (Atsushi Yoshida #2305)
|
220
|
-
* Restore Ruby 2.2.x compatibility. (Jon Rowe, #2332)
|
221
|
-
* Add `required_ruby_version` to gem spec. (Marc-André Lafortune, #2319, #2338)
|
296
|
+
is set using `<Class>.delivery_job=`. (Atsushi Yoshida rspec/rspec-rails#2305)
|
297
|
+
* Restore Ruby 2.2.x compatibility. (Jon Rowe, rspec/rspec-rails#2332)
|
298
|
+
* Add `required_ruby_version` to gem spec. (Marc-André Lafortune, rspec/rspec-rails#2319, rspec/rspec-rails#2338)
|
222
299
|
|
223
300
|
### 4.0.0 / 2020-03-24
|
224
301
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.9.1...v4.0.0)
|
225
302
|
|
226
303
|
Enhancements:
|
227
304
|
|
228
|
-
* Adds support for Rails 6. (Penelope Phippen, Benoit Tigeot, Jon Rowe, #2071)
|
305
|
+
* Adds support for Rails 6. (Penelope Phippen, Benoit Tigeot, Jon Rowe, rspec/rspec-rails#2071)
|
229
306
|
* Adds support for JRuby on Rails 5.2 and 6
|
230
|
-
* Add support for parameterised mailers (Ignatius Reza, #2125)
|
231
|
-
* Add ActionMailbox spec helpers and test type (James Dabbs, #2119)
|
232
|
-
* Add ActionCable spec helpers and test type (Vladimir Dementyev, #2113)
|
307
|
+
* Add support for parameterised mailers (Ignatius Reza, rspec/rspec-rails#2125)
|
308
|
+
* Add ActionMailbox spec helpers and test type (James Dabbs, rspec/rspec-rails#2119)
|
309
|
+
* Add ActionCable spec helpers and test type (Vladimir Dementyev, rspec/rspec-rails#2113)
|
233
310
|
* Add support for partial args when using `have_enqueued_mail`
|
234
|
-
(Ignatius Reza, #2118, #2125)
|
235
|
-
* Add support for time arguments for `have_enqueued_job` (@alpaca-tc, #2157)
|
236
|
-
* Improve path parsing in view specs render options. (John Hawthorn, #2115)
|
311
|
+
(Ignatius Reza, rspec/rspec-rails#2118, rspec/rspec-rails#2125)
|
312
|
+
* Add support for time arguments for `have_enqueued_job` (@alpaca-tc, rspec/rspec-rails#2157)
|
313
|
+
* Improve path parsing in view specs render options. (John Hawthorn, rspec/rspec-rails#2115)
|
237
314
|
* Add routing spec template as an option for generating controller specs.
|
238
|
-
(David Revelo, #2134)
|
239
|
-
* Add argument matcher support to `have_enqueued_*` matchers. (Phil Pirozhkov, #2206)
|
240
|
-
* Switch generated templates to use ruby 1.9 hash keys. (Tanbir Hasan, #2224)
|
315
|
+
(David Revelo, rspec/rspec-rails#2134)
|
316
|
+
* Add argument matcher support to `have_enqueued_*` matchers. (Phil Pirozhkov, rspec/rspec-rails#2206)
|
317
|
+
* Switch generated templates to use ruby 1.9 hash keys. (Tanbir Hasan, rspec/rspec-rails#2224)
|
241
318
|
* Add `have_been_performed`/`have_performed_job`/`perform_job` ActiveJob
|
242
|
-
matchers (Isaac Seymour, #1785)
|
319
|
+
matchers (Isaac Seymour, rspec/rspec-rails#1785)
|
243
320
|
* Default to generating request specs rather than controller specs when
|
244
|
-
generating a controller (Luka Lüdicke, #2222)
|
245
|
-
* Allow `ActiveJob` matchers `#on_queue` modifier to take symbolic queue names. (Nils Sommer, #2283)
|
321
|
+
generating a controller (Luka Lüdicke, rspec/rspec-rails#2222)
|
322
|
+
* Allow `ActiveJob` matchers `#on_queue` modifier to take symbolic queue names. (Nils Sommer, rspec/rspec-rails#2283)
|
246
323
|
* The scaffold generator now generates request specs in preference to controller specs.
|
247
|
-
(Luka Lüdicke, #2288)
|
248
|
-
* Add configuration option to disable ActiveRecord. (Jon Rowe, Phil Pirozhkov, Hermann Mayer, #2266)
|
324
|
+
(Luka Lüdicke, rspec/rspec-rails#2288)
|
325
|
+
* Add configuration option to disable ActiveRecord. (Jon Rowe, Phil Pirozhkov, Hermann Mayer, rspec/rspec-rails#2266)
|
249
326
|
* Set `ActionDispatch::SystemTesting::Server.silence_puma = true` when running system specs.
|
250
|
-
(ta1kt0me, Benoit Tigeot, #2289)
|
327
|
+
(ta1kt0me, Benoit Tigeot, rspec/rspec-rails#2289)
|
251
328
|
|
252
329
|
Bug Fixes:
|
253
330
|
|
254
331
|
* `EmptyTemplateHandler.call` now needs to support an additional argument in
|
255
|
-
Rails 6. (Pavel Rosický, #2089)
|
332
|
+
Rails 6. (Pavel Rosický, rspec/rspec-rails#2089)
|
256
333
|
* Suppress warning from `SQLite3Adapter.represent_boolean_as_integer` which is
|
257
|
-
deprecated. (Pavel Rosický, #2092)
|
334
|
+
deprecated. (Pavel Rosický, rspec/rspec-rails#2092)
|
258
335
|
* `ActionView::Template#formats` has been deprecated and replaced by
|
259
|
-
`ActionView::Template#format`(Seb Jacobs, #2100)
|
336
|
+
`ActionView::Template#format`(Seb Jacobs, rspec/rspec-rails#2100)
|
260
337
|
* Replace `before_teardown` as well as `after_teardown` to ensure screenshots
|
261
|
-
are generated correctly. (Jon Rowe, #2164)
|
338
|
+
are generated correctly. (Jon Rowe, rspec/rspec-rails#2164)
|
262
339
|
* `ActionView::FixtureResolver#hash` has been renamed to `ActionView::FixtureResolver#data`.
|
263
|
-
(Penelope Phippen, #2076)
|
340
|
+
(Penelope Phippen, rspec/rspec-rails#2076)
|
264
341
|
* Prevent `driven_by(:selenium)` being called due to hook precedence.
|
265
|
-
(Takumi Shotoku, #2188)
|
342
|
+
(Takumi Shotoku, rspec/rspec-rails#2188)
|
266
343
|
* Prevent a `WrongScopeError` being thrown during loading fixtures on Rails
|
267
|
-
6.1 development version. (Edouard Chin, #2215)
|
268
|
-
* Fix Mocha mocking support with `should`. (Phil Pirozhkov, #2256)
|
344
|
+
6.1 development version. (Edouard Chin, rspec/rspec-rails#2215)
|
345
|
+
* Fix Mocha mocking support with `should`. (Phil Pirozhkov, rspec/rspec-rails#2256)
|
269
346
|
* Restore previous conditional check for setting `default_url_options` in feature
|
270
|
-
specs, prevents a `NoMethodError` in some scenarios. (Eugene Kenny, #2277)
|
347
|
+
specs, prevents a `NoMethodError` in some scenarios. (Eugene Kenny, rspec/rspec-rails#2277)
|
271
348
|
* Allow changing `ActiveJob::Base.queue_adapter` inside a system spec.
|
272
|
-
(Jonathan Rochkind, #2242)
|
273
|
-
* `rails generate generator` command now creates related spec file (Joel Azemar, #2217)
|
274
|
-
* Relax upper `capybara` version constraint to allow for Capybara 3.x (Phil Pirozhkov, #2281)
|
275
|
-
* Clear ActionMailer test mailbox after each example (Benoit Tigeot, #2293)
|
349
|
+
(Jonathan Rochkind, rspec/rspec-rails#2242)
|
350
|
+
* `rails generate generator` command now creates related spec file (Joel Azemar, rspec/rspec-rails#2217)
|
351
|
+
* Relax upper `capybara` version constraint to allow for Capybara 3.x (Phil Pirozhkov, rspec/rspec-rails#2281)
|
352
|
+
* Clear ActionMailer test mailbox after each example (Benoit Tigeot, rspec/rspec-rails#2293)
|
276
353
|
|
277
354
|
Breaking Changes:
|
278
355
|
|
@@ -284,7 +361,7 @@ Breaking Changes:
|
|
284
361
|
|
285
362
|
Bug Fixes:
|
286
363
|
|
287
|
-
* Add missing require for have_enqueued_mail matcher. (Ignatius Reza, #2117)
|
364
|
+
* Add missing require for have_enqueued_mail matcher. (Ignatius Reza, rspec/rspec-rails#2117)
|
288
365
|
|
289
366
|
### 3.9.0 / 2019-10-08
|
290
367
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.3...v3.9.0)
|
@@ -292,18 +369,18 @@ Bug Fixes:
|
|
292
369
|
Enhancements
|
293
370
|
|
294
371
|
* Use `__dir__` instead of `__FILE__` in generated `rails_helper.rb` where
|
295
|
-
supported. (OKURA Masafumi, #2048)
|
372
|
+
supported. (OKURA Masafumi, rspec/rspec-rails#2048)
|
296
373
|
* Add `have_enqueued_mail` matcher as a "super" matcher to the `ActiveJob` matchers
|
297
|
-
making it easier to match on `ActiveJob` delivered emails. (Joel Lubrano, #2047)
|
298
|
-
* Add generator for system specs on Rails 5.1 and above. (Andrzej Sliwa, #1933)
|
299
|
-
* Add generator for generator specs. (@ConSou, #2085)
|
300
|
-
* Add option to generate routes when generating controller specs. (David Revelo, #2134)
|
374
|
+
making it easier to match on `ActiveJob` delivered emails. (Joel Lubrano, rspec/rspec-rails#2047)
|
375
|
+
* Add generator for system specs on Rails 5.1 and above. (Andrzej Sliwa, rspec/rspec-rails#1933)
|
376
|
+
* Add generator for generator specs. (@ConSou, rspec/rspec-rails#2085)
|
377
|
+
* Add option to generate routes when generating controller specs. (David Revelo, rspec/rspec-rails#2134)
|
301
378
|
|
302
379
|
Bug Fixes:
|
303
380
|
|
304
381
|
* Make the `ActiveJob` matchers fail when multiple jobs are queued for negated
|
305
382
|
matches. e.g. `expect { job; job; }.to_not have_enqueued_job`.
|
306
|
-
(Emric Istanful, #2069)
|
383
|
+
(Emric Istanful, rspec/rspec-rails#2069)
|
307
384
|
|
308
385
|
### 3.8.3 / 2019-10-03
|
309
386
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.2...v3.8.3)
|
@@ -311,9 +388,9 @@ Bug Fixes:
|
|
311
388
|
Bug Fixes:
|
312
389
|
|
313
390
|
* Namespaced fixtures now generate a `/` separated path rather than an `_`.
|
314
|
-
(@nxlith, #2077)
|
391
|
+
(@nxlith, rspec/rspec-rails#2077)
|
315
392
|
* Check the arity of `errors` before attempting to use it to generate the `be_valid`
|
316
|
-
error message. (Kevin Kuchta, #2096)
|
393
|
+
error message. (Kevin Kuchta, rspec/rspec-rails#2096)
|
317
394
|
|
318
395
|
### 3.8.2 / 2019-01-13
|
319
396
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.1...v3.8.2)
|
@@ -321,13 +398,13 @@ Bug Fixes:
|
|
321
398
|
Bug Fixes:
|
322
399
|
|
323
400
|
* Fix issue with generator for preview specs where `Mailer` would be duplicated
|
324
|
-
in the name. (Kohei Sugi, #2037)
|
325
|
-
* Fix the request spec generator to handle namespaced files. (Kohei Sugi, #2057)
|
401
|
+
in the name. (Kohei Sugi, rspec/rspec-rails#2037)
|
402
|
+
* Fix the request spec generator to handle namespaced files. (Kohei Sugi, rspec/rspec-rails#2057)
|
326
403
|
* Further truncate system test filenames to handle cases when extra words are
|
327
|
-
prepended. (Takumi Kaji, #2058)
|
404
|
+
prepended. (Takumi Kaji, rspec/rspec-rails#2058)
|
328
405
|
* Backport: Make the `ActiveJob` matchers fail when multiple jobs are queued
|
329
406
|
for negated matches. e.g. `expect { job; job; }.to_not have_enqueued_job
|
330
|
-
(Emric Istanful, #2069)
|
407
|
+
(Emric Istanful, rspec/rspec-rails#2069)
|
331
408
|
|
332
409
|
### 3.8.1 / 2018-10-23
|
333
410
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.0...v3.8.1)
|
@@ -335,11 +412,11 @@ Bug Fixes:
|
|
335
412
|
Bug Fixes:
|
336
413
|
|
337
414
|
* Fix `NoMethodError: undefined method 'strip'` when using a `Pathname` object
|
338
|
-
as the fixture file path. (Aaron Kromer, #2026)
|
415
|
+
as the fixture file path. (Aaron Kromer, rspec/rspec-rails#2026)
|
339
416
|
* When generating feature specs, do not duplicate namespace in the path name.
|
340
|
-
(Laura Paakkinen, #2034)
|
417
|
+
(Laura Paakkinen, rspec/rspec-rails#2034)
|
341
418
|
* Prevent `ActiveJob::DeserializationError` from being issued when `ActiveJob`
|
342
|
-
matchers de-serialize arguments. (@aymeric-ledorze, #2036)
|
419
|
+
matchers de-serialize arguments. (@aymeric-ledorze, rspec/rspec-rails#2036)
|
343
420
|
|
344
421
|
### 3.8.0 / 2018-08-04
|
345
422
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.2...v3.8.0)
|
@@ -347,25 +424,25 @@ Bug Fixes:
|
|
347
424
|
Enhancements:
|
348
425
|
|
349
426
|
* Improved message when migrations are pending in the default `rails_helper.rb`
|
350
|
-
(Koichi ITO, #1924)
|
427
|
+
(Koichi ITO, rspec/rspec-rails#1924)
|
351
428
|
* `have_http_status` matcher now supports Rails 5.2 style response symbols
|
352
|
-
(Douglas Lovell, #1951)
|
429
|
+
(Douglas Lovell, rspec/rspec-rails#1951)
|
353
430
|
* Change generated Rails helper to match Rails standards for Rails.root
|
354
|
-
(Alessandro Rodi, #1960)
|
431
|
+
(Alessandro Rodi, rspec/rspec-rails#1960)
|
355
432
|
* At support for asserting enqueued jobs have no wait period attached.
|
356
|
-
(Brad Charna, #1977)
|
433
|
+
(Brad Charna, rspec/rspec-rails#1977)
|
357
434
|
* Cache instances of `ActionView::Template` used in `stub_template` resulting
|
358
|
-
in increased performance due to less allocations and setup. (Simon Coffey, #1979)
|
435
|
+
in increased performance due to less allocations and setup. (Simon Coffey, rspec/rspec-rails#1979)
|
359
436
|
* Rails scaffold generator now respects longer namespaces (e.g. api/v1/\<thing\>).
|
360
|
-
(Laura Paakkinen, #1958)
|
437
|
+
(Laura Paakkinen, rspec/rspec-rails#1958)
|
361
438
|
|
362
439
|
Bug Fixes:
|
363
440
|
|
364
441
|
* Escape quotation characters when producing method names for system spec
|
365
|
-
screenshots. (Shane Cavanaugh, #1955)
|
442
|
+
screenshots. (Shane Cavanaugh, rspec/rspec-rails#1955)
|
366
443
|
* Use relative path for resolving fixtures when `fixture_path` is not set.
|
367
|
-
(Laurent Cobos, #1943)
|
368
|
-
* Allow custom template resolvers in view specs. (@ahorek, #1941)
|
444
|
+
(Laurent Cobos, rspec/rspec-rails#1943)
|
445
|
+
* Allow custom template resolvers in view specs. (@ahorek, rspec/rspec-rails#1941)
|
369
446
|
|
370
447
|
|
371
448
|
### 3.7.2 / 2017-11-20
|
@@ -373,16 +450,16 @@ Bug Fixes:
|
|
373
450
|
|
374
451
|
Bug Fixes:
|
375
452
|
|
376
|
-
* Delay loading system test integration until used. (Jon Rowe, #1903)
|
453
|
+
* Delay loading system test integration until used. (Jon Rowe, rspec/rspec-rails#1903)
|
377
454
|
* Ensure specs using the aggregate failures feature take screenshots on failure.
|
378
|
-
(Matt Brictson, #1907)
|
455
|
+
(Matt Brictson, rspec/rspec-rails#1907)
|
379
456
|
|
380
457
|
### 3.7.1 / 2017-10-18
|
381
458
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.0...v3.7.1)
|
382
459
|
|
383
460
|
Bug Fixes:
|
384
461
|
|
385
|
-
* Prevent system test integration loading when puma or capybara are missing (Sam Phippen, #1884)
|
462
|
+
* Prevent system test integration loading when puma or capybara are missing (Sam Phippen, rspec/rspec-rails#1884)
|
386
463
|
|
387
464
|
### 3.7.0 / 2017-10-17
|
388
465
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0...v3.7.0)
|
@@ -390,27 +467,27 @@ Bug Fixes:
|
|
390
467
|
Bug Fixes:
|
391
468
|
|
392
469
|
* Prevent "template not rendered" log message from erroring in threaded
|
393
|
-
environments. (Samuel Cochran, #1831)
|
394
|
-
* Correctly generate job name in error message. (Wojciech Wnętrzak, #1814)
|
470
|
+
environments. (Samuel Cochran, rspec/rspec-rails#1831)
|
471
|
+
* Correctly generate job name in error message. (Wojciech Wnętrzak, rspec/rspec-rails#1814)
|
395
472
|
|
396
473
|
Enhancements:
|
397
474
|
|
398
475
|
* Allow `be_a_new(...).with(...)` matcher to accept matchers for
|
399
|
-
attribute values. (Britni Alexander, #1811)
|
400
|
-
* Only configure RSpec Mocks if it is fully loaded. (James Adam, #1856)
|
401
|
-
* Integrate with `ActionDispatch::SystemTestCase`. (Sam Phippen, #1813)
|
476
|
+
attribute values. (Britni Alexander, rspec/rspec-rails#1811)
|
477
|
+
* Only configure RSpec Mocks if it is fully loaded. (James Adam, rspec/rspec-rails#1856)
|
478
|
+
* Integrate with `ActionDispatch::SystemTestCase`. (Sam Phippen, rspec/rspec-rails#1813)
|
402
479
|
|
403
480
|
### 3.6.0 / 2017-05-04
|
404
481
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0.beta2...v3.6.0)
|
405
482
|
|
406
483
|
Enhancements:
|
407
484
|
|
408
|
-
* Add compatibility for Rails 5.1. (Sam Phippen, Yuichiro Kaneko, #1790)
|
485
|
+
* Add compatibility for Rails 5.1. (Sam Phippen, Yuichiro Kaneko, rspec/rspec-rails#1790)
|
409
486
|
|
410
487
|
Bug Fixes:
|
411
488
|
|
412
489
|
* Fix scaffold generator so that it does not generate broken controller specs
|
413
|
-
on Rails 3.x and 4.x. (Yuji Nakayama, #1710)
|
490
|
+
on Rails 3.x and 4.x. (Yuji Nakayama, rspec/rspec-rails#1710)
|
414
491
|
|
415
492
|
### 3.6.0.beta2 / 2016-12-12
|
416
493
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0.beta1...v3.6.0.beta2)
|
@@ -418,19 +495,19 @@ Bug Fixes:
|
|
418
495
|
Enhancements:
|
419
496
|
|
420
497
|
* Improve failure output of ActiveJob matchers by listing queued jobs.
|
421
|
-
(Wojciech Wnętrzak, #1722)
|
498
|
+
(Wojciech Wnętrzak, rspec/rspec-rails#1722)
|
422
499
|
* Load `spec_helper.rb` earlier in `rails_helper.rb` by default.
|
423
|
-
(Kevin Glowacz, #1795)
|
500
|
+
(Kevin Glowacz, rspec/rspec-rails#1795)
|
424
501
|
|
425
502
|
### 3.6.0.beta1 / 2016-10-09
|
426
503
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.2...v3.6.0.beta1)
|
427
504
|
|
428
505
|
Enhancements:
|
429
506
|
|
430
|
-
* Add support for `rake notes` in Rails `>= 5.1`. (John Meehan, #1661)
|
507
|
+
* Add support for `rake notes` in Rails `>= 5.1`. (John Meehan, rspec/rspec-rails#1661)
|
431
508
|
* Remove `assigns` and `assert_template` from scaffold spec generators (Josh
|
432
|
-
Justice, #1689)
|
433
|
-
* Add support for generating scaffolds for api app specs. (Krzysztof Zych, #1685)
|
509
|
+
Justice, rspec/rspec-rails#1689)
|
510
|
+
* Add support for generating scaffolds for api app specs. (Krzysztof Zych, rspec/rspec-rails#1685)
|
434
511
|
|
435
512
|
### 3.5.2 / 2016-08-26
|
436
513
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.1...v3.5.2)
|
@@ -438,9 +515,9 @@ Enhancements:
|
|
438
515
|
Bug Fixes:
|
439
516
|
|
440
517
|
* Stop unnecessarily loading `rspec/core` from `rspec/rails` to avoid
|
441
|
-
IRB context warning. (Myron Marston, #1678)
|
518
|
+
IRB context warning. (Myron Marston, rspec/rspec-rails#1678)
|
442
519
|
* Deserialize arguments within ActiveJob matchers correctly.
|
443
|
-
(Wojciech Wnętrzak, #1684)
|
520
|
+
(Wojciech Wnętrzak, rspec/rspec-rails#1684)
|
444
521
|
|
445
522
|
### 3.5.1 / 2016-07-08
|
446
523
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0...v3.5.1)
|
@@ -461,30 +538,30 @@ Bug Fixes:
|
|
461
538
|
|
462
539
|
Enhancements:
|
463
540
|
|
464
|
-
* Add support for block when using `with` on `have_enqueued_job`. (John Schroeder, #1578)
|
465
|
-
* Add support for `file_fixture(...)`. (Wojciech Wnętrzak, #1587)
|
466
|
-
* Add support for `setup` and `teardown` with blocks (Miklós Fazekas, #1598)
|
541
|
+
* Add support for block when using `with` on `have_enqueued_job`. (John Schroeder, rspec/rspec-rails#1578)
|
542
|
+
* Add support for `file_fixture(...)`. (Wojciech Wnętrzak, rspec/rspec-rails#1587)
|
543
|
+
* Add support for `setup` and `teardown` with blocks (Miklós Fazekas, rspec/rspec-rails#1598)
|
467
544
|
* Add `enqueue_job ` alias for `have_enqueued_job`, support `once`/`twice`/
|
468
545
|
`thrice`, add `have_been_enqueued` matcher to support use without blocks.
|
469
|
-
(Sergey Alexandrovich, #1613)
|
546
|
+
(Sergey Alexandrovich, rspec/rspec-rails#1613)
|
470
547
|
|
471
548
|
Bug fixes:
|
472
549
|
|
473
|
-
* Prevent asset helpers from taking precedence over route helpers. (Prem Sichanugrist, #1496)
|
550
|
+
* Prevent asset helpers from taking precedence over route helpers. (Prem Sichanugrist, rspec/rspec-rails#1496)
|
474
551
|
* Prevent `NoMethodError` during failed `have_rendered` assertions on weird templates.
|
475
|
-
(Jon Rowe, #1623).
|
552
|
+
(Jon Rowe, rspec/rspec-rails#1623).
|
476
553
|
|
477
554
|
### 3.5.0.beta3 / 2016-04-02
|
478
555
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta2...v3.5.0.beta3)
|
479
556
|
|
480
557
|
Enhancements:
|
481
558
|
|
482
|
-
* Add support for Rails 5 Beta 3 (Sam Phippen, Benjamin Quorning, Koen Punt, #1589, #1573)
|
559
|
+
* Add support for Rails 5 Beta 3 (Sam Phippen, Benjamin Quorning, Koen Punt, rspec/rspec-rails#1589, rspec/rspec-rails#1573)
|
483
560
|
|
484
561
|
Bug fixes:
|
485
562
|
|
486
563
|
* Support custom resolvers when preventing views from rendering.
|
487
|
-
(Jon Rowe, Benjamin Quorning, #1580)
|
564
|
+
(Jon Rowe, Benjamin Quorning, rspec/rspec-rails#1580)
|
488
565
|
|
489
566
|
### 3.5.0.beta2 / 2016-03-10
|
490
567
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta1...v3.5.0.beta2)
|
@@ -493,12 +570,12 @@ Enhancements:
|
|
493
570
|
|
494
571
|
* Include `ActionDispatch::IntegrationTest::Behavior` in request spec
|
495
572
|
example groups when on Rails 5, allowing integration test helpers
|
496
|
-
to be used in request specs. (Scott Bronson, #1560)
|
573
|
+
to be used in request specs. (Scott Bronson, rspec/rspec-rails#1560)
|
497
574
|
|
498
575
|
Bug fixes:
|
499
576
|
|
500
577
|
* Make it possible to use floats in auto generated (scaffold) tests.
|
501
|
-
(Alwahsh, #1550)
|
578
|
+
(Alwahsh, rspec/rspec-rails#1550)
|
502
579
|
|
503
580
|
### 3.5.0.beta1 / 2016-02-06
|
504
581
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.2...v3.5.0.beta1)
|
@@ -506,20 +583,20 @@ Bug fixes:
|
|
506
583
|
Enhancements:
|
507
584
|
|
508
585
|
* Add a `--singularize` option for the feature spec generator (Felicity McCabe,
|
509
|
-
#1503)
|
510
|
-
* Prevent leaking TestUnit methods in Rails 4+ (Fernando Seror Garcia, #1512)
|
511
|
-
* Add support for Rails 5 (Sam Phippen, #1492)
|
586
|
+
rspec/rspec-rails#1503)
|
587
|
+
* Prevent leaking TestUnit methods in Rails 4+ (Fernando Seror Garcia, rspec/rspec-rails#1512)
|
588
|
+
* Add support for Rails 5 (Sam Phippen, rspec/rspec-rails#1492)
|
512
589
|
|
513
590
|
Bug fixes:
|
514
591
|
|
515
592
|
* Make it possible to write nested specs within helper specs on classes that are
|
516
|
-
internal to helper classes. (Sam Phippen, Peter Swan, #1499).
|
593
|
+
internal to helper classes. (Sam Phippen, Peter Swan, rspec/rspec-rails#1499).
|
517
594
|
* Warn if a fixture method is called from a `before(:context)` block, instead of
|
518
|
-
crashing with a `undefined method for nil:NilClass`. (Sam Phippen, #1501)
|
519
|
-
* Expose path to view specs (Ryan Clark, Sarah Mei, Sam Phippen, #1402)
|
520
|
-
* Prevent installing Rails 3.2.22.1 on Ruby 1.8.7. (Jon Rowe, #1540)
|
595
|
+
crashing with a `undefined method for nil:NilClass`. (Sam Phippen, rspec/rspec-rails#1501)
|
596
|
+
* Expose path to view specs (Ryan Clark, Sarah Mei, Sam Phippen, rspec/rspec-rails#1402)
|
597
|
+
* Prevent installing Rails 3.2.22.1 on Ruby 1.8.7. (Jon Rowe, rspec/rspec-rails#1540)
|
521
598
|
* Raise a clear error when `have_enqueued_job` is used with non-test
|
522
|
-
adapter. (Wojciech Wnętrzak, #1489)
|
599
|
+
adapter. (Wojciech Wnętrzak, rspec/rspec-rails#1489)
|
523
600
|
|
524
601
|
### 3.4.2 / 2016-02-02
|
525
602
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.1...v3.4.2)
|
@@ -527,7 +604,7 @@ Bug fixes:
|
|
527
604
|
Bug Fixes:
|
528
605
|
|
529
606
|
* Cache template resolvers during path lookup to prevent performance
|
530
|
-
regression from #1535. (Andrew White, #1544)
|
607
|
+
regression from rspec/rspec-rails#1535. (Andrew White, rspec/rspec-rails#1544)
|
531
608
|
|
532
609
|
### 3.4.1 / 2016-01-25
|
533
610
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.0...v3.4.1)
|
@@ -535,7 +612,7 @@ Bug Fixes:
|
|
535
612
|
Bug Fixes:
|
536
613
|
|
537
614
|
* Fix no method error when rendering templates with explicit `:file`
|
538
|
-
parameters for Rails version `4.2.5.1`. (Andrew White, Sam Phippen, #1535)
|
615
|
+
parameters for Rails version `4.2.5.1`. (Andrew White, Sam Phippen, rspec/rspec-rails#1535)
|
539
616
|
|
540
617
|
### 3.4.0 / 2015-11-11
|
541
618
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.3...v3.4.0)
|
@@ -543,20 +620,20 @@ Bug Fixes:
|
|
543
620
|
Enhancements:
|
544
621
|
|
545
622
|
* Improved the failure message for `have_rendered` matcher on a redirect
|
546
|
-
response. (Alex Egan, #1440)
|
623
|
+
response. (Alex Egan, rspec/rspec-rails#1440)
|
547
624
|
* Add configuration option to filter out Rails gems from backtraces.
|
548
|
-
(Bradley Schaefer, #1458)
|
625
|
+
(Bradley Schaefer, rspec/rspec-rails#1458)
|
549
626
|
* Enable resolver cache for view specs for a large speed improvement
|
550
|
-
(Chris Zetter, #1452)
|
627
|
+
(Chris Zetter, rspec/rspec-rails#1452)
|
551
628
|
* Add `have_enqueued_job` matcher for checking if a block has queued jobs.
|
552
|
-
(Wojciech Wnętrzak, #1464)
|
629
|
+
(Wojciech Wnętrzak, rspec/rspec-rails#1464)
|
553
630
|
|
554
631
|
Bug Fixes:
|
555
632
|
|
556
633
|
* Fix another load order issued which causes an undefined method `fixture_path` error
|
557
|
-
when loading rspec-rails after a spec has been created. (Nikki Murray, #1430)
|
634
|
+
when loading rspec-rails after a spec has been created. (Nikki Murray, rspec/rspec-rails#1430)
|
558
635
|
* Removed incorrect surrounding whitespace in the rspec-rails backtrace
|
559
|
-
exclusion pattern for its own `lib` code. (Jam Black, #1439)
|
636
|
+
exclusion pattern for its own `lib` code. (Jam Black, rspec/rspec-rails#1439)
|
560
637
|
|
561
638
|
### 3.3.3 / 2015-07-15
|
562
639
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.2...v3.3.3)
|
@@ -564,7 +641,7 @@ Bug Fixes:
|
|
564
641
|
Bug Fixes:
|
565
642
|
|
566
643
|
* Fix issue with generators caused by `Rails.configuration.hidden_namespaces`
|
567
|
-
including symbols. (Dan Kohn, #1414)
|
644
|
+
including symbols. (Dan Kohn, rspec/rspec-rails#1414)
|
568
645
|
|
569
646
|
### 3.3.2 / 2015-06-18
|
570
647
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.1...v3.3.2)
|
@@ -574,7 +651,7 @@ Bug Fixes:
|
|
574
651
|
* Fix regression that caused stubbing abstract ActiveRecord model
|
575
652
|
classes to trigger internal errors in rails due the the verifying
|
576
653
|
double lifecycle wrongly calling `define_attribute_methods` on the
|
577
|
-
abstract AR class. (Jon Rowe, #1396)
|
654
|
+
abstract AR class. (Jon Rowe, rspec/rspec-rails#1396)
|
578
655
|
|
579
656
|
### 3.3.1 / 2015-06-14
|
580
657
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.0...v3.3.1)
|
@@ -582,25 +659,25 @@ Bug Fixes:
|
|
582
659
|
Bug Fixes:
|
583
660
|
|
584
661
|
* Fix regression that caused stubbing ActiveRecord model classes to
|
585
|
-
trigger internal errors in rails. (Myron Marston, Aaron Kromer, #1395)
|
662
|
+
trigger internal errors in rails. (Myron Marston, Aaron Kromer, rspec/rspec-rails#1395)
|
586
663
|
|
587
664
|
### 3.3.0 / 2015-06-12
|
588
665
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.3...v3.3.0)
|
589
666
|
|
590
667
|
Enhancements:
|
591
668
|
|
592
|
-
* Add support for PATCH to route specs created via scaffold. (Igor Zubkov, #1336)
|
669
|
+
* Add support for PATCH to route specs created via scaffold. (Igor Zubkov, rspec/rspec-rails#1336)
|
593
670
|
* Improve controller and routing spec calls to `routes` by using `yield`
|
594
|
-
instead of `call`. (Anton Davydov, #1308)
|
671
|
+
instead of `call`. (Anton Davydov, rspec/rspec-rails#1308)
|
595
672
|
* Add support for `ActiveJob` specs as standard `RSpec::Rails::RailsExampleGroup`s
|
596
673
|
via both `type: :job` and inferring type from spec directory `spec/jobs`.
|
597
|
-
(Gabe Martin-Dempesy, #1361)
|
674
|
+
(Gabe Martin-Dempesy, rspec/rspec-rails#1361)
|
598
675
|
* Include `RSpec::Rails::FixtureSupport` into example groups using metadata
|
599
|
-
`use_fixtures: true`. (Aaron Kromer, #1372)
|
676
|
+
`use_fixtures: true`. (Aaron Kromer, rspec/rspec-rails#1372)
|
600
677
|
* Include `rspec:request` generator for generating request specs; this is an
|
601
|
-
alias of `rspec:integration` (Aaron Kromer, #1378)
|
678
|
+
alias of `rspec:integration` (Aaron Kromer, rspec/rspec-rails#1378)
|
602
679
|
* Update `rails_helper` generator with a default check to abort the spec run
|
603
|
-
when the Rails environment is production. (Aaron Kromer, #1383)
|
680
|
+
when the Rails environment is production. (Aaron Kromer, rspec/rspec-rails#1383)
|
604
681
|
|
605
682
|
### 3.2.3 / 2015-06-06
|
606
683
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.2...v3.2.3)
|
@@ -608,7 +685,7 @@ Enhancements:
|
|
608
685
|
Bug Fixes:
|
609
686
|
|
610
687
|
* Fix regression with the railtie resulting in undefined method `preview_path=`
|
611
|
-
on Rails 3.x and 4.0 (Aaron Kromer, #1388)
|
688
|
+
on Rails 3.x and 4.0 (Aaron Kromer, rspec/rspec-rails#1388)
|
612
689
|
|
613
690
|
### 3.2.2 / 2015-06-03
|
614
691
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.1...v3.2.2)
|
@@ -616,12 +693,12 @@ Bug Fixes:
|
|
616
693
|
Bug Fixes:
|
617
694
|
|
618
695
|
* Fix auto-including of generic `Helper` object for view specs sitting in the
|
619
|
-
`app/views` root (David Daniell, #1289)
|
620
|
-
* Remove pre-loading of ActionMailer in the Railtie (Aaron Kromer, #1327)
|
696
|
+
`app/views` root (David Daniell, rspec/rspec-rails#1289)
|
697
|
+
* Remove pre-loading of ActionMailer in the Railtie (Aaron Kromer, rspec/rspec-rails#1327)
|
621
698
|
* Fix undefined method `need_auto_run=` error when using Ruby 2.1 and Rails 3.2
|
622
|
-
without the test-unit gem (Orien Madgwick, #1350)
|
699
|
+
without the test-unit gem (Orien Madgwick, rspec/rspec-rails#1350)
|
623
700
|
* Fix load order issued which causes an undefined method `fixture_path` error
|
624
|
-
when loading rspec-rails after a spec has been created. (Aaron Kromer, #1372)
|
701
|
+
when loading rspec-rails after a spec has been created. (Aaron Kromer, rspec/rspec-rails#1372)
|
625
702
|
|
626
703
|
### 3.2.1 / 2015-02-23
|
627
704
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.0...v3.2.1)
|
@@ -629,71 +706,71 @@ Bug Fixes:
|
|
629
706
|
Bug Fixes:
|
630
707
|
|
631
708
|
* Add missing `require` to RSpec generator root fixing an issue where Rail's
|
632
|
-
autoload does not find it in some environments. (Aaron Kromer, #1305)
|
633
|
-
* `be_routable` matcher now has the correct description. (Tony Ta, #1310)
|
634
|
-
* Fix dependency to allow Rails 4.2.x patches / pre-releases (Lucas Mazza, #1318)
|
709
|
+
autoload does not find it in some environments. (Aaron Kromer, rspec/rspec-rails#1305)
|
710
|
+
* `be_routable` matcher now has the correct description. (Tony Ta, rspec/rspec-rails#1310)
|
711
|
+
* Fix dependency to allow Rails 4.2.x patches / pre-releases (Lucas Mazza, rspec/rspec-rails#1318)
|
635
712
|
* Disable the `test-unit` gem's autorunner on projects running Rails < 4.1 and
|
636
|
-
Ruby < 2.2 (Aaron Kromer, #1320)
|
713
|
+
Ruby < 2.2 (Aaron Kromer, rspec/rspec-rails#1320)
|
637
714
|
|
638
715
|
### 3.2.0 / 2015-02-03
|
639
716
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.1.0...v3.2.0)
|
640
717
|
|
641
718
|
Enhancements:
|
642
719
|
|
643
|
-
* Include generator for `ActionMailer` mailer previews (Takashi Nakagawa, #1185)
|
644
|
-
* Configure the `ActionMailer` preview path via a Railtie (Aaron Kromer, #1236)
|
645
|
-
* Show all RSpec generators when running `rails generate` (Eliot Sykes, #1248)
|
646
|
-
* Support Ruby 2.2 with Rails 3.2 and 4.x (Aaron Kromer, #1264, #1277)
|
720
|
+
* Include generator for `ActionMailer` mailer previews (Takashi Nakagawa, rspec/rspec-rails#1185)
|
721
|
+
* Configure the `ActionMailer` preview path via a Railtie (Aaron Kromer, rspec/rspec-rails#1236)
|
722
|
+
* Show all RSpec generators when running `rails generate` (Eliot Sykes, rspec/rspec-rails#1248)
|
723
|
+
* Support Ruby 2.2 with Rails 3.2 and 4.x (Aaron Kromer, rspec/rspec-rails#1264, rspec/rspec-rails#1277)
|
647
724
|
* Improve `instance_double` to support verifying dynamic column methods defined
|
648
|
-
by `ActiveRecord` (Jon Rowe, #1238)
|
725
|
+
by `ActiveRecord` (Jon Rowe, rspec/rspec-rails#1238)
|
649
726
|
* Mirror the use of Ruby 1.9 hash syntax for the `type` tags in the spec
|
650
|
-
generators on Rails 4. (Michael Stock, #1292)
|
727
|
+
generators on Rails 4. (Michael Stock, rspec/rspec-rails#1292)
|
651
728
|
|
652
729
|
Bug Fixes:
|
653
730
|
|
654
731
|
* Fix `rspec:feature` generator to use `RSpec` namespace preventing errors when
|
655
|
-
monkey-patching is disabled. (Rebecca Skinner, #1231)
|
732
|
+
monkey-patching is disabled. (Rebecca Skinner, rspec/rspec-rails#1231)
|
656
733
|
* Fix `NoMethodError` caused by calling `RSpec.feature` when Capybara is not
|
657
|
-
available or the Capybara version is < 2.4.0. (Aaron Kromer, #1261)
|
734
|
+
available or the Capybara version is < 2.4.0. (Aaron Kromer, rspec/rspec-rails#1261)
|
658
735
|
* Fix `ArgumentError` when using an anonymous controller which inherits an
|
659
|
-
outer group's anonymous controller. (Yuji Nakayama, #1260)
|
736
|
+
outer group's anonymous controller. (Yuji Nakayama, rspec/rspec-rails#1260)
|
660
737
|
* Fix "Test is not a class (TypeError)" error when using a custom `Test` class
|
661
|
-
in Rails 4.1 and 4.2. (Aaron Kromer, #1295)
|
738
|
+
in Rails 4.1 and 4.2. (Aaron Kromer, rspec/rspec-rails#1295)
|
662
739
|
|
663
740
|
### 3.1.0 / 2014-09-04
|
664
741
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.2...v3.1.0)
|
665
742
|
|
666
743
|
Enhancements:
|
667
744
|
|
668
|
-
* Switch to using the `have_http_status` matcher in spec generators. (Aaron Kromer, #1086)
|
745
|
+
* Switch to using the `have_http_status` matcher in spec generators. (Aaron Kromer, rspec/rspec-rails#1086)
|
669
746
|
* Update `rails_helper` generator to allow users to opt-in to auto-loading
|
670
|
-
`spec/support` files instead of forcing it upon them. (Aaron Kromer, #1137)
|
671
|
-
* Include generator for `ActiveJob`. (Abdelkader Boudih, #1155)
|
747
|
+
`spec/support` files instead of forcing it upon them. (Aaron Kromer, rspec/rspec-rails#1137)
|
748
|
+
* Include generator for `ActiveJob`. (Abdelkader Boudih, rspec/rspec-rails#1155)
|
672
749
|
* Improve support for non-ActiveRecord apps by not loading ActiveRecord related
|
673
|
-
settings in the generated `rails_helper`. (Aaron Kromer, #1150)
|
674
|
-
* Remove Ruby warnings as a suggested configuration. (Aaron Kromer, #1163)
|
675
|
-
* Improve the semantics of the controller spec for scaffolds. (Griffin Smith, #1204)
|
676
|
-
* Use `#method` syntax in all generated controller specs. (Griffin Smith, #1206)
|
750
|
+
settings in the generated `rails_helper`. (Aaron Kromer, rspec/rspec-rails#1150)
|
751
|
+
* Remove Ruby warnings as a suggested configuration. (Aaron Kromer, rspec/rspec-rails#1163)
|
752
|
+
* Improve the semantics of the controller spec for scaffolds. (Griffin Smith, rspec/rspec-rails#1204)
|
753
|
+
* Use `#method` syntax in all generated controller specs. (Griffin Smith, rspec/rspec-rails#1206)
|
677
754
|
|
678
755
|
Bug Fixes:
|
679
756
|
|
680
|
-
* Fix controller route lookup for Rails 4.2. (Tomohiro Hashidate, #1142)
|
757
|
+
* Fix controller route lookup for Rails 4.2. (Tomohiro Hashidate, rspec/rspec-rails#1142)
|
681
758
|
|
682
759
|
### 3.0.2 / 2014-07-21
|
683
760
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.1...v3.0.2)
|
684
761
|
|
685
762
|
Bug Fixes:
|
686
763
|
|
687
|
-
* Suppress warning in `SetupAndTeardownAdapter`. (André Arko, #1085)
|
688
|
-
* Remove dependency on Rubygems. (Andre Arko & Doc Riteze, #1099)
|
689
|
-
* Standardize controller spec template style. (Thomas Kriechbaumer, #1122)
|
764
|
+
* Suppress warning in `SetupAndTeardownAdapter`. (André Arko, rspec/rspec-rails#1085)
|
765
|
+
* Remove dependency on Rubygems. (Andre Arko & Doc Riteze, rspec/rspec-rails#1099)
|
766
|
+
* Standardize controller spec template style. (Thomas Kriechbaumer, rspec/rspec-rails#1122)
|
690
767
|
|
691
768
|
### 3.0.1 / 2014-06-02
|
692
769
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0...v3.0.1)
|
693
770
|
|
694
771
|
Bug Fixes:
|
695
772
|
|
696
|
-
* Fix missing require in `rails g rspec:install`. (Sam Phippen, #1058)
|
773
|
+
* Fix missing require in `rails g rspec:install`. (Sam Phippen, rspec/rspec-rails#1058)
|
697
774
|
|
698
775
|
### 3.0.0 / 2014-06-01
|
699
776
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.rc1...v3.0.0)
|