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