rspec-rails 3.9.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Capybara.md +5 -54
- data/Changelog.md +156 -78
- data/README.md +8 -7
- 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 +2 -2
- data/lib/rspec/rails/example/rails_example_group.rb +1 -1
- data/lib/rspec/rails/example/system_example_group.rb +26 -10
- 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 +148 -22
- 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 +10 -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 +46 -34
- metadata.gz.sig +0 -0
- data/lib/generators/rspec/observer/observer_generator.rb +0 -13
data/Changelog.md
CHANGED
@@ -1,14 +1,92 @@
|
|
1
1
|
### Development
|
2
|
-
[Full Changelog](
|
2
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.1...4-0-development)
|
3
|
+
|
4
|
+
### 4.0.1 / 2020-05-16
|
5
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0...v4.0.1)
|
6
|
+
|
7
|
+
Bug Fixes:
|
8
|
+
|
9
|
+
* Remove warning when calling `driven_by` in system specs. (Aubin Lorieux, #2302)
|
10
|
+
* Fix comparison of times for `#at` in job matchers. (Jon Rowe, Markus Doits, #2304)
|
11
|
+
* Allow `have_enqueued_mail` to match when a sub class of `ActionMailer::DeliveryJob`
|
12
|
+
is set using `<Class>.delivery_job=`. (Atsushi Yoshida #2305)
|
13
|
+
* Restore Ruby 2.2.x compatibility. (Jon Rowe, #2332)
|
14
|
+
* Add `required_ruby_version` to gem spec. (Marc-André Lafortune, #2319, #2338)
|
15
|
+
|
16
|
+
### 4.0.0 / 2020-03-24
|
17
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.9.1...v4.0.0)
|
18
|
+
|
19
|
+
Enhancements:
|
20
|
+
|
21
|
+
* Adds support for Rails 6. (Penelope Phippen, Benoit Tigeot, Jon Rowe, #2071)
|
22
|
+
* Adds support for JRuby on Rails 5.2 and 6
|
23
|
+
* Add support for parameterised mailers (Ignatius Reza, #2125)
|
24
|
+
* Add ActionMailbox spec helpers and test type (James Dabbs, #2119)
|
25
|
+
* Add ActionCable spec helpers and test type (Vladimir Dementyev, #2113)
|
26
|
+
* Add support for partial args when using `have_enqueued_mail`
|
27
|
+
(Ignatius Reza, #2118, #2125)
|
28
|
+
* Add support for time arguments for `have_enqueued_job` (@alpaca-tc, #2157)
|
29
|
+
* Improve path parsing in view specs render options. (John Hawthorn, #2115)
|
30
|
+
* Add routing spec template as an option for generating controller specs.
|
31
|
+
(David Revelo, #2134)
|
32
|
+
* Add argument matcher support to `have_enqueued_*` matchers. (Phil Pirozhkov, #2206)
|
33
|
+
* Switch generated templates to use ruby 1.9 hash keys. (Tanbir Hasan, #2224)
|
34
|
+
* Add `have_been_performed`/`have_performed_job`/`perform_job` ActiveJob
|
35
|
+
matchers (Isaac Seymour, #1785)
|
36
|
+
* Default to generating request specs rather than controller specs when
|
37
|
+
generating a controller (Luka Lüdicke, #2222)
|
38
|
+
* Allow `ActiveJob` matchers `#on_queue` modifier to take symbolic queue names. (Nils Sommer, #2283)
|
39
|
+
* The scaffold generator now generates request specs in preference to controller specs.
|
40
|
+
(Luka Lüdicke, #2288)
|
41
|
+
* Add configuration option to disable ActiveRecord. (Jon Rowe, Phil Pirozhkov, Hermann Mayer, #2266)
|
42
|
+
* Set `ActionDispatch::SystemTesting::Server.silence_puma = true` when running system specs.
|
43
|
+
(ta1kt0me, Benoit Tigeot, #2289)
|
44
|
+
|
45
|
+
Bug Fixes:
|
46
|
+
|
47
|
+
* `EmptyTemplateHandler.call` now needs to support an additional argument in
|
48
|
+
Rails 6. (Pavel Rosický, #2089)
|
49
|
+
* Suppress warning from `SQLite3Adapter.represent_boolean_as_integer` which is
|
50
|
+
deprecated. (Pavel Rosický, #2092)
|
51
|
+
* `ActionView::Template#formats` has been deprecated and replaced by
|
52
|
+
`ActionView::Template#format`(Seb Jacobs, #2100)
|
53
|
+
* Replace `before_teardown` as well as `after_teardown` to ensure screenshots
|
54
|
+
are generated correctly. (Jon Rowe, #2164)
|
55
|
+
* `ActionView::FixtureResolver#hash` has been renamed to `ActionView::FixtureResolver#data`.
|
56
|
+
(Penelope Phippen, #2076)
|
57
|
+
* Prevent `driven_by(:selenium)` being called due to hook precedence.
|
58
|
+
(Takumi Shotoku, #2188)
|
59
|
+
* Prevent a `WrongScopeError` being thrown during loading fixtures on Rails
|
60
|
+
6.1 development version. (Edouard Chin, #2215)
|
61
|
+
* Fix Mocha mocking support with `should`. (Phil Pirozhkov, #2256)
|
62
|
+
* Restore previous conditional check for setting `default_url_options` in feature
|
63
|
+
specs, prevents a `NoMethodError` in some scenarios. (Eugene Kenny, #2277)
|
64
|
+
* Allow changing `ActiveJob::Base.queue_adapter` inside a system spec.
|
65
|
+
(Jonathan Rochkind, #2242)
|
66
|
+
* `rails generate generator` command now creates related spec file (Joel Azemar, #2217)
|
67
|
+
* Relax upper `capybara` version constraint to allow for Capybara 3.x (Phil Pirozhkov, #2281)
|
68
|
+
* Clear ActionMailer test mailbox after each example (Benoit Tigeot, #2293)
|
69
|
+
|
70
|
+
Breaking Changes:
|
71
|
+
|
72
|
+
* Drops support for Rails below 5.0
|
73
|
+
* Drops support for Ruby below 2.3
|
74
|
+
|
75
|
+
### 3.9.1 / 2020-03-10
|
76
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.9.0...v3.9.1)
|
77
|
+
|
78
|
+
Bug Fixes:
|
79
|
+
|
80
|
+
* Add missing require for have_enqueued_mail matcher. (Ignatius Reza, #2117)
|
3
81
|
|
4
82
|
### 3.9.0 / 2019-10-08
|
5
|
-
[Full Changelog](
|
83
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.3...v3.9.0)
|
6
84
|
|
7
85
|
Enhancements
|
8
86
|
|
9
87
|
* Use `__dir__` instead of `__FILE__` in generated `rails_helper.rb` where
|
10
88
|
supported. (OKURA Masafumi, #2048)
|
11
|
-
* Add `
|
89
|
+
* Add `have_enqueued_mail` matcher as a "super" matcher to the `ActiveJob` matchers
|
12
90
|
making it easier to match on `ActiveJob` delivered emails. (Joel Lubrano, #2047)
|
13
91
|
* Add generator for system specs on Rails 5.1 and above. (Andrzej Sliwa, #1933)
|
14
92
|
* Add generator for generator specs. (@ConSou, #2085)
|
@@ -17,11 +95,11 @@ Enhancements
|
|
17
95
|
Bug Fixes:
|
18
96
|
|
19
97
|
* Make the `ActiveJob` matchers fail when multiple jobs are queued for negated
|
20
|
-
matches. e.g. `expect { job; job; }.to_not have_enqueued_job
|
98
|
+
matches. e.g. `expect { job; job; }.to_not have_enqueued_job`.
|
21
99
|
(Emric Istanful, #2069)
|
22
100
|
|
23
101
|
### 3.8.3 / 2019-10-03
|
24
|
-
[Full Changelog](
|
102
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.2...v3.8.3)
|
25
103
|
|
26
104
|
Bug Fixes:
|
27
105
|
|
@@ -31,7 +109,7 @@ Bug Fixes:
|
|
31
109
|
error message. (Kevin Kuchta, #2096)
|
32
110
|
|
33
111
|
### 3.8.2 / 2019-01-13
|
34
|
-
[Full Changelog](
|
112
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.1...v3.8.2)
|
35
113
|
|
36
114
|
Bug Fixes:
|
37
115
|
|
@@ -45,7 +123,7 @@ Bug Fixes:
|
|
45
123
|
(Emric Istanful, #2069)
|
46
124
|
|
47
125
|
### 3.8.1 / 2018-10-23
|
48
|
-
[Full Changelog](
|
126
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.0...v3.8.1)
|
49
127
|
|
50
128
|
Bug Fixes:
|
51
129
|
|
@@ -57,7 +135,7 @@ Bug Fixes:
|
|
57
135
|
matchers de-serialize arguments. (@aymeric-ledorze, #2036)
|
58
136
|
|
59
137
|
### 3.8.0 / 2018-08-04
|
60
|
-
[Full Changelog](
|
138
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.2...v3.8.0)
|
61
139
|
|
62
140
|
Enhancements:
|
63
141
|
|
@@ -84,7 +162,7 @@ Bug Fixes:
|
|
84
162
|
|
85
163
|
|
86
164
|
### 3.7.2 / 2017-11-20
|
87
|
-
[Full Changelog](
|
165
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.1...v3.7.2)
|
88
166
|
|
89
167
|
Bug Fixes:
|
90
168
|
|
@@ -93,14 +171,14 @@ Bug Fixes:
|
|
93
171
|
(Matt Brictson, #1907)
|
94
172
|
|
95
173
|
### 3.7.1 / 2017-10-18
|
96
|
-
[Full Changelog](
|
174
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.0...v3.7.1)
|
97
175
|
|
98
176
|
Bug Fixes:
|
99
177
|
|
100
178
|
* Prevent system test integration loading when puma or capybara are missing (Sam Phippen, #1884)
|
101
179
|
|
102
180
|
### 3.7.0 / 2017-10-17
|
103
|
-
[Full Changelog](
|
181
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0...v3.7.0)
|
104
182
|
|
105
183
|
Bug Fixes:
|
106
184
|
|
@@ -116,7 +194,7 @@ Enhancements:
|
|
116
194
|
* Integrate with `ActionDispatch::SystemTestCase`. (Sam Phippen, #1813)
|
117
195
|
|
118
196
|
### 3.6.0 / 2017-05-04
|
119
|
-
[Full Changelog](
|
197
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0.beta2...v3.6.0)
|
120
198
|
|
121
199
|
Enhancements:
|
122
200
|
|
@@ -128,7 +206,7 @@ Bug Fixes:
|
|
128
206
|
on Rails 3.x and 4.x. (Yuji Nakayama, #1710)
|
129
207
|
|
130
208
|
### 3.6.0.beta2 / 2016-12-12
|
131
|
-
[Full Changelog](
|
209
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0.beta1...v3.6.0.beta2)
|
132
210
|
|
133
211
|
Enhancements:
|
134
212
|
|
@@ -138,7 +216,7 @@ Enhancements:
|
|
138
216
|
(Kevin Glowacz, #1795)
|
139
217
|
|
140
218
|
### 3.6.0.beta1 / 2016-10-09
|
141
|
-
[Full Changelog](
|
219
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.2...v3.6.0.beta1)
|
142
220
|
|
143
221
|
Enhancements:
|
144
222
|
|
@@ -148,7 +226,7 @@ Enhancements:
|
|
148
226
|
* Add support for generating scaffolds for api app specs. (Krzysztof Zych, #1685)
|
149
227
|
|
150
228
|
### 3.5.2 / 2016-08-26
|
151
|
-
[Full Changelog](
|
229
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.1...v3.5.2)
|
152
230
|
|
153
231
|
Bug Fixes:
|
154
232
|
|
@@ -158,7 +236,7 @@ Bug Fixes:
|
|
158
236
|
(Wojciech Wnętrzak, #1684)
|
159
237
|
|
160
238
|
### 3.5.1 / 2016-07-08
|
161
|
-
[Full Changelog](
|
239
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0...v3.5.1)
|
162
240
|
|
163
241
|
Bug Fixes:
|
164
242
|
|
@@ -167,12 +245,12 @@ Bug Fixes:
|
|
167
245
|
is defined. (#1660, Betesh).
|
168
246
|
|
169
247
|
### 3.5.0 / 2016-07-01
|
170
|
-
[Full Changelog](
|
248
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta4...v3.5.0)
|
171
249
|
|
172
250
|
**No user facing changes since beta4**
|
173
251
|
|
174
252
|
### 3.5.0.beta4 / 2016-06-05
|
175
|
-
[Full Changelog](
|
253
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta3...v3.5.0.beta4)
|
176
254
|
|
177
255
|
Enhancements:
|
178
256
|
|
@@ -190,7 +268,7 @@ Bug fixes:
|
|
190
268
|
(Jon Rowe, #1623).
|
191
269
|
|
192
270
|
### 3.5.0.beta3 / 2016-04-02
|
193
|
-
[Full Changelog](
|
271
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta2...v3.5.0.beta3)
|
194
272
|
|
195
273
|
Enhancements:
|
196
274
|
|
@@ -202,7 +280,7 @@ Bug fixes:
|
|
202
280
|
(Jon Rowe, Benjamin Quorning, #1580)
|
203
281
|
|
204
282
|
### 3.5.0.beta2 / 2016-03-10
|
205
|
-
[Full Changelog](
|
283
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta1...v3.5.0.beta2)
|
206
284
|
|
207
285
|
Enhancements:
|
208
286
|
|
@@ -216,7 +294,7 @@ Bug fixes:
|
|
216
294
|
(Alwahsh, #1550)
|
217
295
|
|
218
296
|
### 3.5.0.beta1 / 2016-02-06
|
219
|
-
[Full Changelog](
|
297
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.2...v3.5.0.beta1)
|
220
298
|
|
221
299
|
Enhancements:
|
222
300
|
|
@@ -237,7 +315,7 @@ Bug fixes:
|
|
237
315
|
adapter. (Wojciech Wnętrzak, #1489)
|
238
316
|
|
239
317
|
### 3.4.2 / 2016-02-02
|
240
|
-
[Full Changelog](
|
318
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.1...v3.4.2)
|
241
319
|
|
242
320
|
Bug Fixes:
|
243
321
|
|
@@ -245,7 +323,7 @@ Bug Fixes:
|
|
245
323
|
regression from #1535. (Andrew White, #1544)
|
246
324
|
|
247
325
|
### 3.4.1 / 2016-01-25
|
248
|
-
[Full Changelog](
|
326
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.0...v3.4.1)
|
249
327
|
|
250
328
|
Bug Fixes:
|
251
329
|
|
@@ -253,7 +331,7 @@ Bug Fixes:
|
|
253
331
|
parameters for Rails version `4.2.5.1`. (Andrew White, Sam Phippen, #1535)
|
254
332
|
|
255
333
|
### 3.4.0 / 2015-11-11
|
256
|
-
[Full Changelog](
|
334
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.3...v3.4.0)
|
257
335
|
|
258
336
|
Enhancements:
|
259
337
|
|
@@ -274,7 +352,7 @@ Bug Fixes:
|
|
274
352
|
exclusion pattern for its own `lib` code. (Jam Black, #1439)
|
275
353
|
|
276
354
|
### 3.3.3 / 2015-07-15
|
277
|
-
[Full Changelog](
|
355
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.2...v3.3.3)
|
278
356
|
|
279
357
|
Bug Fixes:
|
280
358
|
|
@@ -282,7 +360,7 @@ Bug Fixes:
|
|
282
360
|
including symbols. (Dan Kohn, #1414)
|
283
361
|
|
284
362
|
### 3.3.2 / 2015-06-18
|
285
|
-
[Full Changelog](
|
363
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.1...v3.3.2)
|
286
364
|
|
287
365
|
Bug Fixes:
|
288
366
|
|
@@ -292,7 +370,7 @@ Bug Fixes:
|
|
292
370
|
abstract AR class. (Jon Rowe, #1396)
|
293
371
|
|
294
372
|
### 3.3.1 / 2015-06-14
|
295
|
-
[Full Changelog](
|
373
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.0...v3.3.1)
|
296
374
|
|
297
375
|
Bug Fixes:
|
298
376
|
|
@@ -300,7 +378,7 @@ Bug Fixes:
|
|
300
378
|
trigger internal errors in rails. (Myron Marston, Aaron Kromer, #1395)
|
301
379
|
|
302
380
|
### 3.3.0 / 2015-06-12
|
303
|
-
[Full Changelog](
|
381
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.3...v3.3.0)
|
304
382
|
|
305
383
|
Enhancements:
|
306
384
|
|
@@ -308,17 +386,17 @@ Enhancements:
|
|
308
386
|
* Improve controller and routing spec calls to `routes` by using `yield`
|
309
387
|
instead of `call`. (Anton Davydov, #1308)
|
310
388
|
* Add support for `ActiveJob` specs as standard `RSpec::Rails::RailsExampleGoup`s
|
311
|
-
via both
|
389
|
+
via both `type: :job` and inferring type from spec directory `spec/jobs`.
|
312
390
|
(Gabe Martin-Dempesy, #1361)
|
313
391
|
* Include `RSpec::Rails::FixtureSupport` into example groups using metadata
|
314
|
-
|
392
|
+
`use_fixtures: true`. (Aaron Kromer, #1372)
|
315
393
|
* Include `rspec:request` generator for generating request specs; this is an
|
316
394
|
alias of `rspec:integration` (Aaron Kromer, #1378)
|
317
395
|
* Update `rails_helper` generator with a default check to abort the spec run
|
318
396
|
when the Rails environment is production. (Aaron Kromer, #1383)
|
319
397
|
|
320
398
|
### 3.2.3 / 2015-06-06
|
321
|
-
[Full Changelog](
|
399
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.2...v3.2.3)
|
322
400
|
|
323
401
|
Bug Fixes:
|
324
402
|
|
@@ -326,7 +404,7 @@ Bug Fixes:
|
|
326
404
|
on Rails 3.x and 4.0 (Aaron Kromer, #1388)
|
327
405
|
|
328
406
|
### 3.2.2 / 2015-06-03
|
329
|
-
[Full Changelog](
|
407
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.1...v3.2.2)
|
330
408
|
|
331
409
|
Bug Fixes:
|
332
410
|
|
@@ -339,7 +417,7 @@ Bug Fixes:
|
|
339
417
|
when loading rspec-rails after a spec has been created. (Aaron Kromer, #1372)
|
340
418
|
|
341
419
|
### 3.2.1 / 2015-02-23
|
342
|
-
[Full Changelog](
|
420
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.0...v3.2.1)
|
343
421
|
|
344
422
|
Bug Fixes:
|
345
423
|
|
@@ -351,7 +429,7 @@ Bug Fixes:
|
|
351
429
|
Ruby < 2.2 (Aaron Kromer, #1320)
|
352
430
|
|
353
431
|
### 3.2.0 / 2015-02-03
|
354
|
-
[Full Changelog](
|
432
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.1.0...v3.2.0)
|
355
433
|
|
356
434
|
Enhancements:
|
357
435
|
|
@@ -376,7 +454,7 @@ Bug Fixes:
|
|
376
454
|
in Rails 4.1 and 4.2. (Aaron Kromer, #1295)
|
377
455
|
|
378
456
|
### 3.1.0 / 2014-09-04
|
379
|
-
[Full Changelog](
|
457
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.2...v3.1.0)
|
380
458
|
|
381
459
|
Enhancements:
|
382
460
|
|
@@ -395,7 +473,7 @@ Bug Fixes:
|
|
395
473
|
* Fix controller route lookup for Rails 4.2. (Tomohiro Hashidate, #1142)
|
396
474
|
|
397
475
|
### 3.0.2 / 2014-07-21
|
398
|
-
[Full Changelog](
|
476
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.1...v3.0.2)
|
399
477
|
|
400
478
|
Bug Fixes:
|
401
479
|
|
@@ -404,14 +482,14 @@ Bug Fixes:
|
|
404
482
|
* Standardize controller spec template style. (Thomas Kriechbaumer, #1122)
|
405
483
|
|
406
484
|
### 3.0.1 / 2014-06-02
|
407
|
-
[Full Changelog](
|
485
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0...v3.0.1)
|
408
486
|
|
409
487
|
Bug Fixes:
|
410
488
|
|
411
489
|
* Fix missing require in `rails g rspec:install`. (Sam Phippen, #1058)
|
412
490
|
|
413
491
|
### 3.0.0 / 2014-06-01
|
414
|
-
[Full Changelog](
|
492
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.rc1...v3.0.0)
|
415
493
|
|
416
494
|
Enhancements:
|
417
495
|
|
@@ -424,7 +502,7 @@ Bug Fixes:
|
|
424
502
|
* Fix an issue with fixture support when `ActiveRecord` isn't loaded. (Jon Rowe)
|
425
503
|
|
426
504
|
### 3.0.0.rc1 / 2014-05-18
|
427
|
-
[Full Changelog](
|
505
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.beta2...v3.0.0.rc1)
|
428
506
|
|
429
507
|
Breaking Changes for 3.0.0:
|
430
508
|
|
@@ -452,7 +530,7 @@ Enhancements:
|
|
452
530
|
Bug Fixes:
|
453
531
|
|
454
532
|
* Fix an inconsistency in the generated scaffold specs for a controller. (Andy Waite)
|
455
|
-
* Ensure `config.before(:all, :
|
533
|
+
* Ensure `config.before(:all, type: <type>)` hooks run before groups
|
456
534
|
of the given type, even when the type is inferred by the file
|
457
535
|
location. (Jon Rowe, Myron Marston)
|
458
536
|
* Switch to parsing params with `Rack::Utils::parse_nested_query` to match Rails.
|
@@ -460,7 +538,7 @@ Bug Fixes:
|
|
460
538
|
* Fix incorrect namespacing of anonymous controller routes. (Aaron Kromer)
|
461
539
|
|
462
540
|
### 3.0.0.beta2 / 2014-02-17
|
463
|
-
[Full Changelog](
|
541
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.beta1...v3.0.0.beta2)
|
464
542
|
|
465
543
|
Breaking Changes for 3.0.0:
|
466
544
|
|
@@ -488,7 +566,7 @@ Bug Fixes:
|
|
488
566
|
* Require `rspec/collection_matchers` when `rspec/rails` is required. (Yuji Nakayama)
|
489
567
|
|
490
568
|
### 3.0.0.beta1 / 2013-11-07
|
491
|
-
[Full Changelog](
|
569
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0...v3.0.0.beta1)
|
492
570
|
|
493
571
|
Breaking Changes for 3.0.0:
|
494
572
|
|
@@ -496,12 +574,12 @@ Breaking Changes for 3.0.0:
|
|
496
574
|
(Andy Lindeman)
|
497
575
|
|
498
576
|
### 2.99.0 / 2014-06-01
|
499
|
-
[Full Changelog](
|
577
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.rc1...v2.99.0)
|
500
578
|
|
501
579
|
No changes. Just taking it out of pre-release.
|
502
580
|
|
503
581
|
### 2.99.0.rc1 / 2014-05-18
|
504
|
-
[Full Changelog](
|
582
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.beta2...v2.99.0.rc1)
|
505
583
|
|
506
584
|
Deprecations
|
507
585
|
|
@@ -518,7 +596,7 @@ Deprecations
|
|
518
596
|
class passed to `describe`. (Myron Marston)
|
519
597
|
|
520
598
|
### 2.99.0.beta2 / 2014-02-17
|
521
|
-
[Full Changelog](
|
599
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.beta1...v2.99.0.beta2)
|
522
600
|
|
523
601
|
Deprecations:
|
524
602
|
|
@@ -536,7 +614,7 @@ Bug Fixes:
|
|
536
614
|
is not present. (Jon Rowe)
|
537
615
|
|
538
616
|
### 2.99.0.beta1 / 2013-11-07
|
539
|
-
[Full Changelog](
|
617
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0...v2.99.0.beta1)
|
540
618
|
|
541
619
|
Deprecations:
|
542
620
|
|
@@ -558,7 +636,7 @@ Bug Fixes:
|
|
558
636
|
in all of `rails` to use `rspec-rails`. (John Firebaugh)
|
559
637
|
|
560
638
|
### 2.14.1 / 2013-12-29
|
561
|
-
[full changelog](
|
639
|
+
[full changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0...v2.14.1)
|
562
640
|
|
563
641
|
Bug Fixes:
|
564
642
|
|
@@ -573,7 +651,7 @@ Bug Fixes:
|
|
573
651
|
* Use `__send__` rather than `send` to prevent naming collisions (Bradley Schaefer)
|
574
652
|
|
575
653
|
### 2.14.0 / 2013-07-06
|
576
|
-
[Full Changelog](
|
654
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0.rc1...v2.14.0)
|
577
655
|
|
578
656
|
Bug fixes
|
579
657
|
|
@@ -585,7 +663,7 @@ Bug fixes
|
|
585
663
|
Rails 4. (Andy Lindeman)
|
586
664
|
|
587
665
|
### 2.14.0.rc1 / 2013-05-27
|
588
|
-
[Full Changelog](
|
666
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.2...v2.14.0.rc1)
|
589
667
|
|
590
668
|
Enhancements
|
591
669
|
|
@@ -598,7 +676,7 @@ Bug fixes
|
|
598
676
|
spec/ directory. (Benjamin Fleischer)
|
599
677
|
|
600
678
|
### 2.13.2 / 2013-05-18
|
601
|
-
[Full Changelog](
|
679
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.1...v2.13.2)
|
602
680
|
|
603
681
|
Bug fixes
|
604
682
|
|
@@ -613,7 +691,7 @@ Enhancements
|
|
613
691
|
* Document how the spec/support directory works. (Sam Phippen)
|
614
692
|
|
615
693
|
### 2.13.1 / 2013-04-27
|
616
|
-
[Full Changelog](
|
694
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.0...v2.13.1)
|
617
695
|
|
618
696
|
Bug fixes
|
619
697
|
|
@@ -627,7 +705,7 @@ Bug fixes
|
|
627
705
|
* Fix spacing in the install generator template (Taiki ONO)
|
628
706
|
|
629
707
|
### 2.13.0 / 2013-02-23
|
630
|
-
[Full Changelog](
|
708
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.2...v2.13.0)
|
631
709
|
|
632
710
|
Enhancements
|
633
711
|
|
@@ -642,7 +720,7 @@ Enhancements
|
|
642
720
|
(Rudolf Schmidt)
|
643
721
|
|
644
722
|
### 2.12.2 / 2013-01-12
|
645
|
-
[Full Changelog](
|
723
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.1...v2.12.2)
|
646
724
|
|
647
725
|
Bug fixes
|
648
726
|
|
@@ -654,7 +732,7 @@ Bug fixes
|
|
654
732
|
Lindeman)
|
655
733
|
|
656
734
|
### 2.12.1 / 2013-01-07
|
657
|
-
[Full Changelog](
|
735
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.0...v2.12.1)
|
658
736
|
|
659
737
|
Bug fixes
|
660
738
|
|
@@ -669,7 +747,7 @@ Bug fixes
|
|
669
747
|
and generation of URLs from other contexts. (Andy Lindeman)
|
670
748
|
|
671
749
|
### 2.12.0 / 2012-11-12
|
672
|
-
[Full Changelog](
|
750
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.11.4...v2.12.0)
|
673
751
|
|
674
752
|
Enhancements
|
675
753
|
|
@@ -690,7 +768,7 @@ Bug fixes
|
|
690
768
|
* Failures message for `be_new_record` are more useful (Andy Lindeman)
|
691
769
|
|
692
770
|
### 2.11.4 / 2012-10-14
|
693
|
-
[Full Changelog](
|
771
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.11.0...v2.11.4)
|
694
772
|
|
695
773
|
Capybara-2.0 integration support:
|
696
774
|
|
@@ -698,13 +776,13 @@ Capybara-2.0 integration support:
|
|
698
776
|
* include Capybara::DSL and Capybara::RSpecMatchers in spec/features
|
699
777
|
|
700
778
|
See [https://github.com/jnicklas/capybara/pull/809](https://github.com/jnicklas/capybara/pull/809)
|
701
|
-
and [
|
779
|
+
and [https://rubydoc.info/gems/rspec-rails/file/Capybara.md](https://rubydoc.info/gems/rspec-rails/file/Capybara.md)
|
702
780
|
for background.
|
703
781
|
|
704
782
|
2.11.1, .2, .3 were yanked due to errant documentation.
|
705
783
|
|
706
784
|
### 2.11.0 / 2012-07-07
|
707
|
-
[Full Changelog](
|
785
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.10.1...v2.11.0)
|
708
786
|
|
709
787
|
Enhancements
|
710
788
|
|
@@ -723,7 +801,7 @@ Bug fixes
|
|
723
801
|
loads (Andy Lindeman)
|
724
802
|
|
725
803
|
### 2.10.1 / 2012-05-03
|
726
|
-
[Full Changelog](
|
804
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.10.0...v2.10.1)
|
727
805
|
|
728
806
|
Bug fixes
|
729
807
|
|
@@ -733,7 +811,7 @@ Bug fixes
|
|
733
811
|
Rails already does this (Jack Dempsey)
|
734
812
|
|
735
813
|
### 2.10.0 / 2012-05-03
|
736
|
-
[Full Changelog](
|
814
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.9.0...v2.10.0)
|
737
815
|
|
738
816
|
Bug fixes
|
739
817
|
|
@@ -748,7 +826,7 @@ Bug fixes
|
|
748
826
|
Strother)
|
749
827
|
|
750
828
|
### 2.9.0 / 2012-03-17
|
751
|
-
[Full Changelog](
|
829
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.1...v2.9.0)
|
752
830
|
|
753
831
|
Enhancements
|
754
832
|
|
@@ -763,7 +841,7 @@ Bug fixes
|
|
763
841
|
|
764
842
|
### 2.8.1 / 2012-01-04
|
765
843
|
|
766
|
-
[Full Changelog](
|
844
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.0...v2.8.1)
|
767
845
|
|
768
846
|
NOTE: there was a change in rails-3.2.0.rc2 which broke compatibility with
|
769
847
|
stub_model in rspec-rails. This release fixes that issue, but it means that
|
@@ -776,7 +854,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
776
854
|
|
777
855
|
### 2.8.0 / 2012-01-04
|
778
856
|
|
779
|
-
[Full Changelog](
|
857
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.0.rc2...v2.8.0)
|
780
858
|
|
781
859
|
* Enhancements
|
782
860
|
* Eliminate deprecation warnings in generated view specs in Rails 3.2
|
@@ -786,7 +864,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
786
864
|
|
787
865
|
### 2.8.0.rc2 / 2011-12-19
|
788
866
|
|
789
|
-
[Full Changelog](
|
867
|
+
[Full Changelog](https://github.com/rspec/rspec-mocks/compare/v2.8.0.rc1...v2.8.0.rc2)
|
790
868
|
|
791
869
|
* Enhancements
|
792
870
|
* Add session hash to generated controller specs (Thiago Almeida)
|
@@ -798,7 +876,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
798
876
|
|
799
877
|
### 2.8.0.rc1 / 2011-11-06
|
800
878
|
|
801
|
-
[Full Changelog](
|
879
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.7.0...v2.8.0.rc1)
|
802
880
|
|
803
881
|
* Enhancements
|
804
882
|
* Removed unnecessary "config.mock_with :rspec" from spec_helper.rb (Paul
|
@@ -814,7 +892,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
814
892
|
|
815
893
|
### 2.7.0 / 2011-10-16
|
816
894
|
|
817
|
-
[Full Changelog](
|
895
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.6.1...v2.7.0)
|
818
896
|
|
819
897
|
* Enhancements
|
820
898
|
* `ActiveRecord::Relation` can use the `=~` matcher (Andy Lindeman)
|
@@ -839,7 +917,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
839
917
|
|
840
918
|
### 2.6.1 / 2011-05-25
|
841
919
|
|
842
|
-
[Full Changelog](
|
920
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.6.0...v2.6.1)
|
843
921
|
|
844
922
|
This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
845
923
|
|
@@ -850,7 +928,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
850
928
|
|
851
929
|
### 2.6.0 / 2011-05-12
|
852
930
|
|
853
|
-
[Full Changelog](
|
931
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.5.0...v2.6.0)
|
854
932
|
|
855
933
|
* Enhancements
|
856
934
|
* rails 3 shortcuts for routing specs (Joe Fiorini)
|
@@ -874,7 +952,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
874
952
|
|
875
953
|
### 2.5.0 / 2011-02-05
|
876
954
|
|
877
|
-
[Full Changelog](
|
955
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.4.1...v2.5.0)
|
878
956
|
|
879
957
|
* Enhancements
|
880
958
|
* use index_helper instead of table_name when generating specs (Reza
|
@@ -889,7 +967,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
889
967
|
|
890
968
|
### 2.4.1 / 2011-01-03
|
891
969
|
|
892
|
-
[Full Changelog](
|
970
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.4.0...v2.4.1)
|
893
971
|
|
894
972
|
* Bug fixes
|
895
973
|
* fixed bug caused by including some Rails modules before RSpec's
|
@@ -897,12 +975,12 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
897
975
|
|
898
976
|
### 2.4.0 / 2011-01-02
|
899
977
|
|
900
|
-
[Full Changelog](
|
978
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.3.1...v2.4.0)
|
901
979
|
|
902
980
|
* Enhancements
|
903
981
|
* include ApplicationHelper in helper object in helper specs
|
904
982
|
* include request spec extensions in files in spec/integration
|
905
|
-
* include controller spec extensions in groups that use :
|
983
|
+
* include controller spec extensions in groups that use type: :controller
|
906
984
|
* same for :model, :view, :helper, :mailer, :request, :routing
|
907
985
|
|
908
986
|
* Bug fixes
|
@@ -917,7 +995,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
917
995
|
|
918
996
|
### 2.3.1 / 2010-12-16
|
919
997
|
|
920
|
-
[Full Changelog](
|
998
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.3.0...v2.3.1)
|
921
999
|
|
922
1000
|
* Bug fixes
|
923
1001
|
* respond_to? correctly handles 2 args
|
@@ -925,7 +1003,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
925
1003
|
|
926
1004
|
### 2.3.0 / 2010-12-12
|
927
1005
|
|
928
|
-
[Full Changelog](
|
1006
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.2.1...v2.3.0)
|
929
1007
|
|
930
1008
|
* Changes
|
931
1009
|
* Generator no longer generates autotest/autodiscover.rb, as it is no longer
|
@@ -933,7 +1011,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
933
1011
|
|
934
1012
|
### 2.2.1 / 2010-12-01
|
935
1013
|
|
936
|
-
[Full Changelog](
|
1014
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.2.0...v2.2.1)
|
937
1015
|
|
938
1016
|
* Bug fixes
|
939
1017
|
* Depend on railties, activesupport, and actionpack instead of rails (Piotr
|
@@ -945,7 +1023,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
945
1023
|
|
946
1024
|
### 2.2.0 / 2010-11-28
|
947
1025
|
|
948
|
-
[Full Changelog](
|
1026
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.1.0...v2.2.0)
|
949
1027
|
|
950
1028
|
* Enhancements
|
951
1029
|
* Added stub_template in view specs
|
@@ -960,7 +1038,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
960
1038
|
|
961
1039
|
### 2.1.0 / 2010-11-07
|
962
1040
|
|
963
|
-
[Full Changelog](
|
1041
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.0.1...v2.1.0)
|
964
1042
|
|
965
1043
|
* Enhancements
|
966
1044
|
* Move errors_on to ActiveModel to support other AM-compliant ORMs
|
@@ -971,7 +1049,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
971
1049
|
|
972
1050
|
### 2.0.1 / 2010-10-15
|
973
1051
|
|
974
|
-
[Full Changelog](
|
1052
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.0.0...v2.0.1)
|
975
1053
|
|
976
1054
|
* Enhancements
|
977
1055
|
* Add option to not generate request spec (--skip-request-specs)
|