rspec-rails 3.9.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Capybara.md +5 -54
- data/Changelog.md +167 -80
- data/README.md +4 -5
- data/lib/generators/rspec/channel/channel_generator.rb +12 -0
- data/lib/generators/rspec/{observer/templates/observer_spec.rb → channel/templates/channel_spec.rb.erb} +1 -1
- data/lib/generators/rspec/controller/controller_generator.rb +21 -4
- data/lib/generators/rspec/controller/templates/request_spec.rb +14 -0
- data/lib/generators/rspec/controller/templates/routing_spec.rb +13 -0
- data/lib/generators/rspec/feature/feature_generator.rb +2 -2
- data/lib/generators/rspec/{generators → generator}/generator_generator.rb +2 -2
- data/lib/generators/rspec/{generators → generator}/templates/generator_spec.rb +0 -0
- data/lib/generators/rspec/helper/helper_generator.rb +1 -1
- data/lib/generators/rspec/install/install_generator.rb +4 -4
- data/lib/generators/rspec/install/templates/spec/rails_helper.rb +17 -16
- data/lib/generators/rspec/integration/integration_generator.rb +3 -3
- data/lib/generators/rspec/mailbox/mailbox_generator.rb +14 -0
- data/lib/generators/rspec/mailbox/templates/mailbox_spec.rb.erb +7 -0
- data/lib/generators/rspec/mailer/mailer_generator.rb +2 -1
- data/lib/generators/rspec/model/model_generator.rb +5 -4
- data/lib/generators/rspec/model/templates/fixtures.yml +1 -1
- data/lib/generators/rspec/request/request_generator.rb +1 -1
- data/lib/generators/rspec/scaffold/scaffold_generator.rb +29 -19
- data/lib/generators/rspec/scaffold/templates/api_controller_spec.rb +0 -36
- data/lib/generators/rspec/scaffold/templates/api_request_spec.rb +131 -0
- data/lib/generators/rspec/scaffold/templates/controller_spec.rb +10 -10
- data/lib/generators/rspec/scaffold/templates/edit_spec.rb +1 -1
- data/lib/generators/rspec/scaffold/templates/index_spec.rb +2 -2
- data/lib/generators/rspec/scaffold/templates/new_spec.rb +1 -1
- data/lib/generators/rspec/scaffold/templates/request_spec.rb +133 -0
- data/lib/generators/rspec/scaffold/templates/routing_spec.rb +8 -10
- data/lib/generators/rspec/scaffold/templates/show_spec.rb +1 -1
- data/lib/generators/rspec/system/system_generator.rb +1 -1
- data/lib/generators/rspec/view/view_generator.rb +2 -2
- data/lib/generators/rspec.rb +0 -6
- data/lib/rspec/rails/adapters.rb +11 -76
- data/lib/rspec/rails/configuration.rb +43 -33
- data/lib/rspec/rails/example/channel_example_group.rb +93 -0
- data/lib/rspec/rails/example/controller_example_group.rb +4 -4
- data/lib/rspec/rails/example/feature_example_group.rb +6 -26
- data/lib/rspec/rails/example/helper_example_group.rb +2 -9
- data/lib/rspec/rails/example/mailbox_example_group.rb +80 -0
- data/lib/rspec/rails/example/mailer_example_group.rb +1 -1
- data/lib/rspec/rails/example/rails_example_group.rb +1 -1
- data/lib/rspec/rails/example/system_example_group.rb +24 -8
- data/lib/rspec/rails/example/view_example_group.rb +38 -27
- data/lib/rspec/rails/example.rb +2 -0
- data/lib/rspec/rails/extensions/active_record/proxy.rb +1 -9
- data/lib/rspec/rails/feature_check.rb +12 -29
- data/lib/rspec/rails/fixture_file_upload_support.rb +1 -1
- data/lib/rspec/rails/fixture_support.rb +37 -31
- data/lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb +170 -0
- data/lib/rspec/rails/matchers/action_cable/have_streams.rb +58 -0
- data/lib/rspec/rails/matchers/action_cable.rb +65 -0
- data/lib/rspec/rails/matchers/action_mailbox.rb +64 -0
- data/lib/rspec/rails/matchers/active_job.rb +142 -20
- data/lib/rspec/rails/matchers/base_matcher.rb +5 -10
- data/lib/rspec/rails/matchers/have_enqueued_mail.rb +52 -28
- data/lib/rspec/rails/matchers/have_http_status.rb +11 -7
- data/lib/rspec/rails/matchers/have_rendered.rb +1 -0
- data/lib/rspec/rails/matchers/routing_matchers.rb +12 -12
- data/lib/rspec/rails/matchers.rb +9 -0
- data/lib/rspec/rails/tasks/rspec.rake +7 -17
- data/lib/rspec/rails/vendor/capybara.rb +10 -15
- data/lib/rspec/rails/version.rb +1 -1
- data/lib/rspec/rails/view_path_builder.rb +1 -1
- data/lib/rspec/rails/view_rendering.rb +15 -4
- data/lib/rspec-rails.rb +8 -9
- data.tar.gz.sig +0 -0
- metadata +42 -30
- metadata.gz.sig +0 -0
- data/lib/generators/rspec/observer/observer_generator.rb +0 -13
data/Changelog.md
CHANGED
@@ -1,18 +1,105 @@
|
|
1
|
-
###
|
2
|
-
[Full Changelog](
|
1
|
+
### 4.0.0.rc1 / 2020-03-13
|
2
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0.beta4...v4.0.0.rc1)
|
3
|
+
|
4
|
+
Enhancements:
|
5
|
+
|
6
|
+
* Allow `ActiveJob` matchers `#on_queue` modifier to take symbolic queue names. (Nils Sommer, #2283)
|
7
|
+
* The scaffold generator now generates request specs in preference to controller specs.
|
8
|
+
(Luka Lüdicke, #2288)
|
9
|
+
* Add configuration option to disable ActiveRecord. (Jon Rowe, Phil Pirozhkov, Hermann Mayer, #2266)
|
10
|
+
* Set `ActionDispatch::SystemTesting::Server.silence_puma = true` when running system specs.
|
11
|
+
(ta1kt0me, Benoit Tigeot, #2289)
|
12
|
+
|
13
|
+
Bug Fixes:
|
14
|
+
|
15
|
+
* Restore previous conditional check for setting `default_url_options` in feature
|
16
|
+
specs, prevents a `NoMethodError` in some scenarios. (Eugene Kenny, #2277)
|
17
|
+
* Allow changing `ActiveJob::Base.queue_adapter` inside a system spec.
|
18
|
+
(Jonathan Rochkind, #2242)
|
19
|
+
* `rails generate generator` command now creates related spec file (Joel Azemar, #2217)
|
20
|
+
* Relax upper `capybara` version constraint to allow for Capybara 3.x (Phil Pirozhkov, #2281)
|
21
|
+
* Clear ActionMailer test mailbox after each example (Benoit Tigeot, #2293)
|
22
|
+
|
23
|
+
### 4.0.0.beta4
|
24
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0.beta3...v4.0.0.beta4)
|
25
|
+
|
26
|
+
Enhancements:
|
27
|
+
|
28
|
+
* Add argument matcher support to `have_enqueued_*` matchers. (Phil Pirozhkov, #2206)
|
29
|
+
* Switch generated templates to use ruby 1.9 hash keys. (Tanbir Hasan, #2224)
|
30
|
+
* Add `have_been_performed`/`have_performed_job`/`perform_job` ActiveJob
|
31
|
+
matchers (Isaac Seymour, #1785)
|
32
|
+
* Default to generating request specs rather than controller specs when
|
33
|
+
generating a controller (Luka Lüdicke, #2222)
|
34
|
+
|
35
|
+
Bug Fixes:
|
36
|
+
|
37
|
+
* Prevent `driven_by(:selenium)` being called due to hook precedence.
|
38
|
+
(Takumi Shotoku, #2188)
|
39
|
+
* Prevent a `WrongScopeError` being thrown during loading fixtures on Rails
|
40
|
+
6.1 development version. (Edouard Chin, #2215)
|
41
|
+
* Fix Mocha mocking support with `should`. (Phil Pirozhkov, #2256)
|
42
|
+
|
43
|
+
### 4.0.0.beta3
|
44
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0.beta2...v4.0.0.beta3)
|
45
|
+
|
46
|
+
Enhancements:
|
47
|
+
|
48
|
+
* Adds support for JRuby on Rails 5.2 and 6
|
49
|
+
* Add support for parameterised mailers (Ignatius Reza, #2125)
|
50
|
+
* Add ActionMailbox spec helpers and test type (James Dabbs, #2119)
|
51
|
+
* Add ActionCable spec helpers and test type (Vladimir Dementyev, #2113)
|
52
|
+
* Add support for partial args when using `have_enqueued_mail`
|
53
|
+
(Ignatius Reza, #2118, #2125)
|
54
|
+
* Add support for time arguments for `have_enqueued_job` (@alpaca-tc, #2157)
|
55
|
+
* Improve path parsing in view specs render options. (John Hawthorn, #2115)
|
56
|
+
* Add routing spec template as an option for generating controller specs.
|
57
|
+
(David Revelo, #2134)
|
58
|
+
|
59
|
+
Bug Fixes:
|
60
|
+
|
61
|
+
* Replace `before_teardown` as well as `after_teardown` to ensure screenshots
|
62
|
+
are generated correctly. (Jon Rowe, #2164)
|
63
|
+
* `ActionView::FixtureResolver#hash` has been renamed to `ActionView::FixtureResolver#data`.
|
64
|
+
(Penelope Phippen, #2076)
|
65
|
+
* Add missing require for `have_enqueued_mail` matcher. (Ignatius Reza, #2117)
|
66
|
+
|
67
|
+
### 4.0.0.beta2
|
68
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0.beta1...v4.0.0.beta2)
|
3
69
|
|
4
70
|
Bug Fixes:
|
5
71
|
|
6
|
-
*
|
72
|
+
* Fix version dependencies in gemspec.
|
73
|
+
|
74
|
+
### 4.0.0.beta1
|
75
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.9.0...v4.0.0.beta1)
|
76
|
+
|
77
|
+
Enhancements:
|
78
|
+
|
79
|
+
* Adds support for Rails 6. (Penelope Phippen, Benoit Tigeot, Jon Rowe, #2071)
|
80
|
+
|
81
|
+
Bug Fixes:
|
82
|
+
|
83
|
+
* `EmptyTemplateHandler.call` now needs to support an additional argument in
|
84
|
+
Rails 6. (Pavel Rosický, #2089)
|
85
|
+
* Suppress warning from `SQLite3Adapter.represent_boolean_as_integer` which is
|
86
|
+
deprecated. (Pavel Rosický, #2092)
|
87
|
+
* `ActionView::Template#formats` has been deprecated and replaced by
|
88
|
+
`ActionView::Template#format`(Seb Jacobs, #2100)
|
89
|
+
|
90
|
+
Breaking Changes:
|
91
|
+
|
92
|
+
* Drops support for Rails below 5.0
|
93
|
+
* Drops support for Ruby below 2.3
|
7
94
|
|
8
95
|
### 3.9.0 / 2019-10-08
|
9
|
-
[Full Changelog](
|
96
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.3...v3.9.0)
|
10
97
|
|
11
98
|
Enhancements
|
12
99
|
|
13
100
|
* Use `__dir__` instead of `__FILE__` in generated `rails_helper.rb` where
|
14
101
|
supported. (OKURA Masafumi, #2048)
|
15
|
-
* Add `
|
102
|
+
* Add `have_enqueued_mail` matcher as a "super" matcher to the `ActiveJob` matchers
|
16
103
|
making it easier to match on `ActiveJob` delivered emails. (Joel Lubrano, #2047)
|
17
104
|
* Add generator for system specs on Rails 5.1 and above. (Andrzej Sliwa, #1933)
|
18
105
|
* Add generator for generator specs. (@ConSou, #2085)
|
@@ -21,11 +108,11 @@ Enhancements
|
|
21
108
|
Bug Fixes:
|
22
109
|
|
23
110
|
* Make the `ActiveJob` matchers fail when multiple jobs are queued for negated
|
24
|
-
matches. e.g. `expect { job; job; }.to_not have_enqueued_job
|
111
|
+
matches. e.g. `expect { job; job; }.to_not have_enqueued_job`.
|
25
112
|
(Emric Istanful, #2069)
|
26
113
|
|
27
114
|
### 3.8.3 / 2019-10-03
|
28
|
-
[Full Changelog](
|
115
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.2...v3.8.3)
|
29
116
|
|
30
117
|
Bug Fixes:
|
31
118
|
|
@@ -35,7 +122,7 @@ Bug Fixes:
|
|
35
122
|
error message. (Kevin Kuchta, #2096)
|
36
123
|
|
37
124
|
### 3.8.2 / 2019-01-13
|
38
|
-
[Full Changelog](
|
125
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.1...v3.8.2)
|
39
126
|
|
40
127
|
Bug Fixes:
|
41
128
|
|
@@ -49,7 +136,7 @@ Bug Fixes:
|
|
49
136
|
(Emric Istanful, #2069)
|
50
137
|
|
51
138
|
### 3.8.1 / 2018-10-23
|
52
|
-
[Full Changelog](
|
139
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.0...v3.8.1)
|
53
140
|
|
54
141
|
Bug Fixes:
|
55
142
|
|
@@ -61,7 +148,7 @@ Bug Fixes:
|
|
61
148
|
matchers de-serialize arguments. (@aymeric-ledorze, #2036)
|
62
149
|
|
63
150
|
### 3.8.0 / 2018-08-04
|
64
|
-
[Full Changelog](
|
151
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.2...v3.8.0)
|
65
152
|
|
66
153
|
Enhancements:
|
67
154
|
|
@@ -88,7 +175,7 @@ Bug Fixes:
|
|
88
175
|
|
89
176
|
|
90
177
|
### 3.7.2 / 2017-11-20
|
91
|
-
[Full Changelog](
|
178
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.1...v3.7.2)
|
92
179
|
|
93
180
|
Bug Fixes:
|
94
181
|
|
@@ -97,14 +184,14 @@ Bug Fixes:
|
|
97
184
|
(Matt Brictson, #1907)
|
98
185
|
|
99
186
|
### 3.7.1 / 2017-10-18
|
100
|
-
[Full Changelog](
|
187
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.0...v3.7.1)
|
101
188
|
|
102
189
|
Bug Fixes:
|
103
190
|
|
104
191
|
* Prevent system test integration loading when puma or capybara are missing (Sam Phippen, #1884)
|
105
192
|
|
106
193
|
### 3.7.0 / 2017-10-17
|
107
|
-
[Full Changelog](
|
194
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0...v3.7.0)
|
108
195
|
|
109
196
|
Bug Fixes:
|
110
197
|
|
@@ -120,7 +207,7 @@ Enhancements:
|
|
120
207
|
* Integrate with `ActionDispatch::SystemTestCase`. (Sam Phippen, #1813)
|
121
208
|
|
122
209
|
### 3.6.0 / 2017-05-04
|
123
|
-
[Full Changelog](
|
210
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0.beta2...v3.6.0)
|
124
211
|
|
125
212
|
Enhancements:
|
126
213
|
|
@@ -132,7 +219,7 @@ Bug Fixes:
|
|
132
219
|
on Rails 3.x and 4.x. (Yuji Nakayama, #1710)
|
133
220
|
|
134
221
|
### 3.6.0.beta2 / 2016-12-12
|
135
|
-
[Full Changelog](
|
222
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0.beta1...v3.6.0.beta2)
|
136
223
|
|
137
224
|
Enhancements:
|
138
225
|
|
@@ -142,7 +229,7 @@ Enhancements:
|
|
142
229
|
(Kevin Glowacz, #1795)
|
143
230
|
|
144
231
|
### 3.6.0.beta1 / 2016-10-09
|
145
|
-
[Full Changelog](
|
232
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.2...v3.6.0.beta1)
|
146
233
|
|
147
234
|
Enhancements:
|
148
235
|
|
@@ -152,7 +239,7 @@ Enhancements:
|
|
152
239
|
* Add support for generating scaffolds for api app specs. (Krzysztof Zych, #1685)
|
153
240
|
|
154
241
|
### 3.5.2 / 2016-08-26
|
155
|
-
[Full Changelog](
|
242
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.1...v3.5.2)
|
156
243
|
|
157
244
|
Bug Fixes:
|
158
245
|
|
@@ -162,7 +249,7 @@ Bug Fixes:
|
|
162
249
|
(Wojciech Wnętrzak, #1684)
|
163
250
|
|
164
251
|
### 3.5.1 / 2016-07-08
|
165
|
-
[Full Changelog](
|
252
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0...v3.5.1)
|
166
253
|
|
167
254
|
Bug Fixes:
|
168
255
|
|
@@ -171,12 +258,12 @@ Bug Fixes:
|
|
171
258
|
is defined. (#1660, Betesh).
|
172
259
|
|
173
260
|
### 3.5.0 / 2016-07-01
|
174
|
-
[Full Changelog](
|
261
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta4...v3.5.0)
|
175
262
|
|
176
263
|
**No user facing changes since beta4**
|
177
264
|
|
178
265
|
### 3.5.0.beta4 / 2016-06-05
|
179
|
-
[Full Changelog](
|
266
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta3...v3.5.0.beta4)
|
180
267
|
|
181
268
|
Enhancements:
|
182
269
|
|
@@ -194,7 +281,7 @@ Bug fixes:
|
|
194
281
|
(Jon Rowe, #1623).
|
195
282
|
|
196
283
|
### 3.5.0.beta3 / 2016-04-02
|
197
|
-
[Full Changelog](
|
284
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta2...v3.5.0.beta3)
|
198
285
|
|
199
286
|
Enhancements:
|
200
287
|
|
@@ -206,7 +293,7 @@ Bug fixes:
|
|
206
293
|
(Jon Rowe, Benjamin Quorning, #1580)
|
207
294
|
|
208
295
|
### 3.5.0.beta2 / 2016-03-10
|
209
|
-
[Full Changelog](
|
296
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta1...v3.5.0.beta2)
|
210
297
|
|
211
298
|
Enhancements:
|
212
299
|
|
@@ -220,7 +307,7 @@ Bug fixes:
|
|
220
307
|
(Alwahsh, #1550)
|
221
308
|
|
222
309
|
### 3.5.0.beta1 / 2016-02-06
|
223
|
-
[Full Changelog](
|
310
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.2...v3.5.0.beta1)
|
224
311
|
|
225
312
|
Enhancements:
|
226
313
|
|
@@ -241,7 +328,7 @@ Bug fixes:
|
|
241
328
|
adapter. (Wojciech Wnętrzak, #1489)
|
242
329
|
|
243
330
|
### 3.4.2 / 2016-02-02
|
244
|
-
[Full Changelog](
|
331
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.1...v3.4.2)
|
245
332
|
|
246
333
|
Bug Fixes:
|
247
334
|
|
@@ -249,7 +336,7 @@ Bug Fixes:
|
|
249
336
|
regression from #1535. (Andrew White, #1544)
|
250
337
|
|
251
338
|
### 3.4.1 / 2016-01-25
|
252
|
-
[Full Changelog](
|
339
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.0...v3.4.1)
|
253
340
|
|
254
341
|
Bug Fixes:
|
255
342
|
|
@@ -257,7 +344,7 @@ Bug Fixes:
|
|
257
344
|
parameters for Rails version `4.2.5.1`. (Andrew White, Sam Phippen, #1535)
|
258
345
|
|
259
346
|
### 3.4.0 / 2015-11-11
|
260
|
-
[Full Changelog](
|
347
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.3...v3.4.0)
|
261
348
|
|
262
349
|
Enhancements:
|
263
350
|
|
@@ -278,7 +365,7 @@ Bug Fixes:
|
|
278
365
|
exclusion pattern for its own `lib` code. (Jam Black, #1439)
|
279
366
|
|
280
367
|
### 3.3.3 / 2015-07-15
|
281
|
-
[Full Changelog](
|
368
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.2...v3.3.3)
|
282
369
|
|
283
370
|
Bug Fixes:
|
284
371
|
|
@@ -286,7 +373,7 @@ Bug Fixes:
|
|
286
373
|
including symbols. (Dan Kohn, #1414)
|
287
374
|
|
288
375
|
### 3.3.2 / 2015-06-18
|
289
|
-
[Full Changelog](
|
376
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.1...v3.3.2)
|
290
377
|
|
291
378
|
Bug Fixes:
|
292
379
|
|
@@ -296,7 +383,7 @@ Bug Fixes:
|
|
296
383
|
abstract AR class. (Jon Rowe, #1396)
|
297
384
|
|
298
385
|
### 3.3.1 / 2015-06-14
|
299
|
-
[Full Changelog](
|
386
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.0...v3.3.1)
|
300
387
|
|
301
388
|
Bug Fixes:
|
302
389
|
|
@@ -304,7 +391,7 @@ Bug Fixes:
|
|
304
391
|
trigger internal errors in rails. (Myron Marston, Aaron Kromer, #1395)
|
305
392
|
|
306
393
|
### 3.3.0 / 2015-06-12
|
307
|
-
[Full Changelog](
|
394
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.3...v3.3.0)
|
308
395
|
|
309
396
|
Enhancements:
|
310
397
|
|
@@ -312,17 +399,17 @@ Enhancements:
|
|
312
399
|
* Improve controller and routing spec calls to `routes` by using `yield`
|
313
400
|
instead of `call`. (Anton Davydov, #1308)
|
314
401
|
* Add support for `ActiveJob` specs as standard `RSpec::Rails::RailsExampleGoup`s
|
315
|
-
via both
|
402
|
+
via both `type: :job` and inferring type from spec directory `spec/jobs`.
|
316
403
|
(Gabe Martin-Dempesy, #1361)
|
317
404
|
* Include `RSpec::Rails::FixtureSupport` into example groups using metadata
|
318
|
-
|
405
|
+
`use_fixtures: true`. (Aaron Kromer, #1372)
|
319
406
|
* Include `rspec:request` generator for generating request specs; this is an
|
320
407
|
alias of `rspec:integration` (Aaron Kromer, #1378)
|
321
408
|
* Update `rails_helper` generator with a default check to abort the spec run
|
322
409
|
when the Rails environment is production. (Aaron Kromer, #1383)
|
323
410
|
|
324
411
|
### 3.2.3 / 2015-06-06
|
325
|
-
[Full Changelog](
|
412
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.2...v3.2.3)
|
326
413
|
|
327
414
|
Bug Fixes:
|
328
415
|
|
@@ -330,7 +417,7 @@ Bug Fixes:
|
|
330
417
|
on Rails 3.x and 4.0 (Aaron Kromer, #1388)
|
331
418
|
|
332
419
|
### 3.2.2 / 2015-06-03
|
333
|
-
[Full Changelog](
|
420
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.1...v3.2.2)
|
334
421
|
|
335
422
|
Bug Fixes:
|
336
423
|
|
@@ -343,7 +430,7 @@ Bug Fixes:
|
|
343
430
|
when loading rspec-rails after a spec has been created. (Aaron Kromer, #1372)
|
344
431
|
|
345
432
|
### 3.2.1 / 2015-02-23
|
346
|
-
[Full Changelog](
|
433
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.0...v3.2.1)
|
347
434
|
|
348
435
|
Bug Fixes:
|
349
436
|
|
@@ -355,7 +442,7 @@ Bug Fixes:
|
|
355
442
|
Ruby < 2.2 (Aaron Kromer, #1320)
|
356
443
|
|
357
444
|
### 3.2.0 / 2015-02-03
|
358
|
-
[Full Changelog](
|
445
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.1.0...v3.2.0)
|
359
446
|
|
360
447
|
Enhancements:
|
361
448
|
|
@@ -380,7 +467,7 @@ Bug Fixes:
|
|
380
467
|
in Rails 4.1 and 4.2. (Aaron Kromer, #1295)
|
381
468
|
|
382
469
|
### 3.1.0 / 2014-09-04
|
383
|
-
[Full Changelog](
|
470
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.2...v3.1.0)
|
384
471
|
|
385
472
|
Enhancements:
|
386
473
|
|
@@ -399,7 +486,7 @@ Bug Fixes:
|
|
399
486
|
* Fix controller route lookup for Rails 4.2. (Tomohiro Hashidate, #1142)
|
400
487
|
|
401
488
|
### 3.0.2 / 2014-07-21
|
402
|
-
[Full Changelog](
|
489
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.1...v3.0.2)
|
403
490
|
|
404
491
|
Bug Fixes:
|
405
492
|
|
@@ -408,14 +495,14 @@ Bug Fixes:
|
|
408
495
|
* Standardize controller spec template style. (Thomas Kriechbaumer, #1122)
|
409
496
|
|
410
497
|
### 3.0.1 / 2014-06-02
|
411
|
-
[Full Changelog](
|
498
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0...v3.0.1)
|
412
499
|
|
413
500
|
Bug Fixes:
|
414
501
|
|
415
502
|
* Fix missing require in `rails g rspec:install`. (Sam Phippen, #1058)
|
416
503
|
|
417
504
|
### 3.0.0 / 2014-06-01
|
418
|
-
[Full Changelog](
|
505
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.rc1...v3.0.0)
|
419
506
|
|
420
507
|
Enhancements:
|
421
508
|
|
@@ -428,7 +515,7 @@ Bug Fixes:
|
|
428
515
|
* Fix an issue with fixture support when `ActiveRecord` isn't loaded. (Jon Rowe)
|
429
516
|
|
430
517
|
### 3.0.0.rc1 / 2014-05-18
|
431
|
-
[Full Changelog](
|
518
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.beta2...v3.0.0.rc1)
|
432
519
|
|
433
520
|
Breaking Changes for 3.0.0:
|
434
521
|
|
@@ -456,7 +543,7 @@ Enhancements:
|
|
456
543
|
Bug Fixes:
|
457
544
|
|
458
545
|
* Fix an inconsistency in the generated scaffold specs for a controller. (Andy Waite)
|
459
|
-
* Ensure `config.before(:all, :
|
546
|
+
* Ensure `config.before(:all, type: <type>)` hooks run before groups
|
460
547
|
of the given type, even when the type is inferred by the file
|
461
548
|
location. (Jon Rowe, Myron Marston)
|
462
549
|
* Switch to parsing params with `Rack::Utils::parse_nested_query` to match Rails.
|
@@ -464,7 +551,7 @@ Bug Fixes:
|
|
464
551
|
* Fix incorrect namespacing of anonymous controller routes. (Aaron Kromer)
|
465
552
|
|
466
553
|
### 3.0.0.beta2 / 2014-02-17
|
467
|
-
[Full Changelog](
|
554
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.beta1...v3.0.0.beta2)
|
468
555
|
|
469
556
|
Breaking Changes for 3.0.0:
|
470
557
|
|
@@ -492,7 +579,7 @@ Bug Fixes:
|
|
492
579
|
* Require `rspec/collection_matchers` when `rspec/rails` is required. (Yuji Nakayama)
|
493
580
|
|
494
581
|
### 3.0.0.beta1 / 2013-11-07
|
495
|
-
[Full Changelog](
|
582
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0...v3.0.0.beta1)
|
496
583
|
|
497
584
|
Breaking Changes for 3.0.0:
|
498
585
|
|
@@ -500,12 +587,12 @@ Breaking Changes for 3.0.0:
|
|
500
587
|
(Andy Lindeman)
|
501
588
|
|
502
589
|
### 2.99.0 / 2014-06-01
|
503
|
-
[Full Changelog](
|
590
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.rc1...v2.99.0)
|
504
591
|
|
505
592
|
No changes. Just taking it out of pre-release.
|
506
593
|
|
507
594
|
### 2.99.0.rc1 / 2014-05-18
|
508
|
-
[Full Changelog](
|
595
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.beta2...v2.99.0.rc1)
|
509
596
|
|
510
597
|
Deprecations
|
511
598
|
|
@@ -522,7 +609,7 @@ Deprecations
|
|
522
609
|
class passed to `describe`. (Myron Marston)
|
523
610
|
|
524
611
|
### 2.99.0.beta2 / 2014-02-17
|
525
|
-
[Full Changelog](
|
612
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.beta1...v2.99.0.beta2)
|
526
613
|
|
527
614
|
Deprecations:
|
528
615
|
|
@@ -540,7 +627,7 @@ Bug Fixes:
|
|
540
627
|
is not present. (Jon Rowe)
|
541
628
|
|
542
629
|
### 2.99.0.beta1 / 2013-11-07
|
543
|
-
[Full Changelog](
|
630
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0...v2.99.0.beta1)
|
544
631
|
|
545
632
|
Deprecations:
|
546
633
|
|
@@ -562,7 +649,7 @@ Bug Fixes:
|
|
562
649
|
in all of `rails` to use `rspec-rails`. (John Firebaugh)
|
563
650
|
|
564
651
|
### 2.14.1 / 2013-12-29
|
565
|
-
[full changelog](
|
652
|
+
[full changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0...v2.14.1)
|
566
653
|
|
567
654
|
Bug Fixes:
|
568
655
|
|
@@ -577,7 +664,7 @@ Bug Fixes:
|
|
577
664
|
* Use `__send__` rather than `send` to prevent naming collisions (Bradley Schaefer)
|
578
665
|
|
579
666
|
### 2.14.0 / 2013-07-06
|
580
|
-
[Full Changelog](
|
667
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0.rc1...v2.14.0)
|
581
668
|
|
582
669
|
Bug fixes
|
583
670
|
|
@@ -589,7 +676,7 @@ Bug fixes
|
|
589
676
|
Rails 4. (Andy Lindeman)
|
590
677
|
|
591
678
|
### 2.14.0.rc1 / 2013-05-27
|
592
|
-
[Full Changelog](
|
679
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.2...v2.14.0.rc1)
|
593
680
|
|
594
681
|
Enhancements
|
595
682
|
|
@@ -602,7 +689,7 @@ Bug fixes
|
|
602
689
|
spec/ directory. (Benjamin Fleischer)
|
603
690
|
|
604
691
|
### 2.13.2 / 2013-05-18
|
605
|
-
[Full Changelog](
|
692
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.1...v2.13.2)
|
606
693
|
|
607
694
|
Bug fixes
|
608
695
|
|
@@ -617,7 +704,7 @@ Enhancements
|
|
617
704
|
* Document how the spec/support directory works. (Sam Phippen)
|
618
705
|
|
619
706
|
### 2.13.1 / 2013-04-27
|
620
|
-
[Full Changelog](
|
707
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.0...v2.13.1)
|
621
708
|
|
622
709
|
Bug fixes
|
623
710
|
|
@@ -631,7 +718,7 @@ Bug fixes
|
|
631
718
|
* Fix spacing in the install generator template (Taiki ONO)
|
632
719
|
|
633
720
|
### 2.13.0 / 2013-02-23
|
634
|
-
[Full Changelog](
|
721
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.2...v2.13.0)
|
635
722
|
|
636
723
|
Enhancements
|
637
724
|
|
@@ -646,7 +733,7 @@ Enhancements
|
|
646
733
|
(Rudolf Schmidt)
|
647
734
|
|
648
735
|
### 2.12.2 / 2013-01-12
|
649
|
-
[Full Changelog](
|
736
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.1...v2.12.2)
|
650
737
|
|
651
738
|
Bug fixes
|
652
739
|
|
@@ -658,7 +745,7 @@ Bug fixes
|
|
658
745
|
Lindeman)
|
659
746
|
|
660
747
|
### 2.12.1 / 2013-01-07
|
661
|
-
[Full Changelog](
|
748
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.0...v2.12.1)
|
662
749
|
|
663
750
|
Bug fixes
|
664
751
|
|
@@ -673,7 +760,7 @@ Bug fixes
|
|
673
760
|
and generation of URLs from other contexts. (Andy Lindeman)
|
674
761
|
|
675
762
|
### 2.12.0 / 2012-11-12
|
676
|
-
[Full Changelog](
|
763
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.11.4...v2.12.0)
|
677
764
|
|
678
765
|
Enhancements
|
679
766
|
|
@@ -694,7 +781,7 @@ Bug fixes
|
|
694
781
|
* Failures message for `be_new_record` are more useful (Andy Lindeman)
|
695
782
|
|
696
783
|
### 2.11.4 / 2012-10-14
|
697
|
-
[Full Changelog](
|
784
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.11.0...v2.11.4)
|
698
785
|
|
699
786
|
Capybara-2.0 integration support:
|
700
787
|
|
@@ -702,13 +789,13 @@ Capybara-2.0 integration support:
|
|
702
789
|
* include Capybara::DSL and Capybara::RSpecMatchers in spec/features
|
703
790
|
|
704
791
|
See [https://github.com/jnicklas/capybara/pull/809](https://github.com/jnicklas/capybara/pull/809)
|
705
|
-
and [
|
792
|
+
and [https://rubydoc.info/gems/rspec-rails/file/Capybara.md](https://rubydoc.info/gems/rspec-rails/file/Capybara.md)
|
706
793
|
for background.
|
707
794
|
|
708
795
|
2.11.1, .2, .3 were yanked due to errant documentation.
|
709
796
|
|
710
797
|
### 2.11.0 / 2012-07-07
|
711
|
-
[Full Changelog](
|
798
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.10.1...v2.11.0)
|
712
799
|
|
713
800
|
Enhancements
|
714
801
|
|
@@ -727,7 +814,7 @@ Bug fixes
|
|
727
814
|
loads (Andy Lindeman)
|
728
815
|
|
729
816
|
### 2.10.1 / 2012-05-03
|
730
|
-
[Full Changelog](
|
817
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.10.0...v2.10.1)
|
731
818
|
|
732
819
|
Bug fixes
|
733
820
|
|
@@ -737,7 +824,7 @@ Bug fixes
|
|
737
824
|
Rails already does this (Jack Dempsey)
|
738
825
|
|
739
826
|
### 2.10.0 / 2012-05-03
|
740
|
-
[Full Changelog](
|
827
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.9.0...v2.10.0)
|
741
828
|
|
742
829
|
Bug fixes
|
743
830
|
|
@@ -752,7 +839,7 @@ Bug fixes
|
|
752
839
|
Strother)
|
753
840
|
|
754
841
|
### 2.9.0 / 2012-03-17
|
755
|
-
[Full Changelog](
|
842
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.1...v2.9.0)
|
756
843
|
|
757
844
|
Enhancements
|
758
845
|
|
@@ -767,7 +854,7 @@ Bug fixes
|
|
767
854
|
|
768
855
|
### 2.8.1 / 2012-01-04
|
769
856
|
|
770
|
-
[Full Changelog](
|
857
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.0...v2.8.1)
|
771
858
|
|
772
859
|
NOTE: there was a change in rails-3.2.0.rc2 which broke compatibility with
|
773
860
|
stub_model in rspec-rails. This release fixes that issue, but it means that
|
@@ -780,7 +867,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
780
867
|
|
781
868
|
### 2.8.0 / 2012-01-04
|
782
869
|
|
783
|
-
[Full Changelog](
|
870
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.0.rc2...v2.8.0)
|
784
871
|
|
785
872
|
* Enhancements
|
786
873
|
* Eliminate deprecation warnings in generated view specs in Rails 3.2
|
@@ -790,7 +877,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
790
877
|
|
791
878
|
### 2.8.0.rc2 / 2011-12-19
|
792
879
|
|
793
|
-
[Full Changelog](
|
880
|
+
[Full Changelog](https://github.com/rspec/rspec-mocks/compare/v2.8.0.rc1...v2.8.0.rc2)
|
794
881
|
|
795
882
|
* Enhancements
|
796
883
|
* Add session hash to generated controller specs (Thiago Almeida)
|
@@ -802,7 +889,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
802
889
|
|
803
890
|
### 2.8.0.rc1 / 2011-11-06
|
804
891
|
|
805
|
-
[Full Changelog](
|
892
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.7.0...v2.8.0.rc1)
|
806
893
|
|
807
894
|
* Enhancements
|
808
895
|
* Removed unnecessary "config.mock_with :rspec" from spec_helper.rb (Paul
|
@@ -818,7 +905,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
818
905
|
|
819
906
|
### 2.7.0 / 2011-10-16
|
820
907
|
|
821
|
-
[Full Changelog](
|
908
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.6.1...v2.7.0)
|
822
909
|
|
823
910
|
* Enhancements
|
824
911
|
* `ActiveRecord::Relation` can use the `=~` matcher (Andy Lindeman)
|
@@ -843,7 +930,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
843
930
|
|
844
931
|
### 2.6.1 / 2011-05-25
|
845
932
|
|
846
|
-
[Full Changelog](
|
933
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.6.0...v2.6.1)
|
847
934
|
|
848
935
|
This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
849
936
|
|
@@ -854,7 +941,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
854
941
|
|
855
942
|
### 2.6.0 / 2011-05-12
|
856
943
|
|
857
|
-
[Full Changelog](
|
944
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.5.0...v2.6.0)
|
858
945
|
|
859
946
|
* Enhancements
|
860
947
|
* rails 3 shortcuts for routing specs (Joe Fiorini)
|
@@ -878,7 +965,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
878
965
|
|
879
966
|
### 2.5.0 / 2011-02-05
|
880
967
|
|
881
|
-
[Full Changelog](
|
968
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.4.1...v2.5.0)
|
882
969
|
|
883
970
|
* Enhancements
|
884
971
|
* use index_helper instead of table_name when generating specs (Reza
|
@@ -893,7 +980,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
893
980
|
|
894
981
|
### 2.4.1 / 2011-01-03
|
895
982
|
|
896
|
-
[Full Changelog](
|
983
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.4.0...v2.4.1)
|
897
984
|
|
898
985
|
* Bug fixes
|
899
986
|
* fixed bug caused by including some Rails modules before RSpec's
|
@@ -901,12 +988,12 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
901
988
|
|
902
989
|
### 2.4.0 / 2011-01-02
|
903
990
|
|
904
|
-
[Full Changelog](
|
991
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.3.1...v2.4.0)
|
905
992
|
|
906
993
|
* Enhancements
|
907
994
|
* include ApplicationHelper in helper object in helper specs
|
908
995
|
* include request spec extensions in files in spec/integration
|
909
|
-
* include controller spec extensions in groups that use :
|
996
|
+
* include controller spec extensions in groups that use type: :controller
|
910
997
|
* same for :model, :view, :helper, :mailer, :request, :routing
|
911
998
|
|
912
999
|
* Bug fixes
|
@@ -921,7 +1008,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
921
1008
|
|
922
1009
|
### 2.3.1 / 2010-12-16
|
923
1010
|
|
924
|
-
[Full Changelog](
|
1011
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.3.0...v2.3.1)
|
925
1012
|
|
926
1013
|
* Bug fixes
|
927
1014
|
* respond_to? correctly handles 2 args
|
@@ -929,7 +1016,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
929
1016
|
|
930
1017
|
### 2.3.0 / 2010-12-12
|
931
1018
|
|
932
|
-
[Full Changelog](
|
1019
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.2.1...v2.3.0)
|
933
1020
|
|
934
1021
|
* Changes
|
935
1022
|
* Generator no longer generates autotest/autodiscover.rb, as it is no longer
|
@@ -937,7 +1024,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
937
1024
|
|
938
1025
|
### 2.2.1 / 2010-12-01
|
939
1026
|
|
940
|
-
[Full Changelog](
|
1027
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.2.0...v2.2.1)
|
941
1028
|
|
942
1029
|
* Bug fixes
|
943
1030
|
* Depend on railties, activesupport, and actionpack instead of rails (Piotr
|
@@ -949,7 +1036,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
949
1036
|
|
950
1037
|
### 2.2.0 / 2010-11-28
|
951
1038
|
|
952
|
-
[Full Changelog](
|
1039
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.1.0...v2.2.0)
|
953
1040
|
|
954
1041
|
* Enhancements
|
955
1042
|
* Added stub_template in view specs
|
@@ -964,7 +1051,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
964
1051
|
|
965
1052
|
### 2.1.0 / 2010-11-07
|
966
1053
|
|
967
|
-
[Full Changelog](
|
1054
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.0.1...v2.1.0)
|
968
1055
|
|
969
1056
|
* Enhancements
|
970
1057
|
* Move errors_on to ActiveModel to support other AM-compliant ORMs
|
@@ -975,7 +1062,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
975
1062
|
|
976
1063
|
### 2.0.1 / 2010-10-15
|
977
1064
|
|
978
|
-
[Full Changelog](
|
1065
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.0.0...v2.0.1)
|
979
1066
|
|
980
1067
|
* Enhancements
|
981
1068
|
* Add option to not generate request spec (--skip-request-specs)
|