rspec-rails 2.14.2 → 3.9.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 +5 -5
- checksums.yaml.gz.sig +0 -0
- data/.document +1 -1
- data/.yardopts +4 -2
- data/Capybara.md +2 -4
- data/Changelog.md +592 -34
- data/{License.txt → LICENSE.md} +5 -2
- data/README.md +290 -369
- data/lib/generators/rspec/controller/controller_generator.rb +1 -0
- data/lib/generators/rspec/controller/templates/controller_spec.rb +5 -5
- data/lib/generators/rspec/controller/templates/view_spec.rb +2 -2
- data/lib/generators/rspec/feature/feature_generator.rb +29 -0
- data/lib/generators/rspec/feature/templates/feature_singular_spec.rb +5 -0
- data/lib/generators/rspec/feature/templates/feature_spec.rb +5 -0
- data/lib/generators/rspec/generators/generator_generator.rb +24 -0
- data/lib/generators/rspec/generators/templates/generator_spec.rb +6 -0
- data/lib/generators/rspec/helper/helper_generator.rb +1 -0
- data/lib/generators/rspec/helper/templates/helper_spec.rb +2 -2
- data/lib/generators/rspec/install/install_generator.rb +44 -5
- data/lib/generators/rspec/install/templates/spec/rails_helper.rb +78 -0
- data/lib/generators/rspec/integration/integration_generator.rb +8 -13
- data/lib/generators/rspec/integration/templates/request_spec.rb +4 -9
- data/lib/generators/rspec/job/job_generator.rb +12 -0
- data/lib/generators/rspec/job/templates/job_spec.rb.erb +7 -0
- data/lib/generators/rspec/mailer/mailer_generator.rb +7 -0
- data/lib/generators/rspec/mailer/templates/mailer_spec.rb +7 -7
- data/lib/generators/rspec/mailer/templates/preview.rb +13 -0
- data/lib/generators/rspec/model/model_generator.rb +19 -5
- data/lib/generators/rspec/model/templates/fixtures.yml +1 -1
- data/lib/generators/rspec/model/templates/model_spec.rb +2 -2
- data/lib/generators/rspec/observer/observer_generator.rb +1 -0
- data/lib/generators/rspec/observer/templates/observer_spec.rb +2 -2
- data/lib/generators/rspec/request/request_generator.rb +10 -0
- data/lib/generators/rspec/scaffold/scaffold_generator.rb +68 -138
- data/lib/generators/rspec/scaffold/templates/api_controller_spec.rb +165 -0
- data/lib/generators/rspec/scaffold/templates/controller_spec.rb +98 -73
- data/lib/generators/rspec/scaffold/templates/edit_spec.rb +9 -13
- data/lib/generators/rspec/scaffold/templates/index_spec.rb +3 -10
- data/lib/generators/rspec/scaffold/templates/new_spec.rb +10 -14
- data/lib/generators/rspec/scaffold/templates/routing_spec.rb +21 -12
- data/lib/generators/rspec/scaffold/templates/show_spec.rb +4 -11
- data/lib/generators/rspec/system/system_generator.rb +26 -0
- data/lib/generators/rspec/system/templates/system_spec.rb +9 -0
- data/lib/generators/rspec/view/templates/view_spec.rb +2 -2
- data/lib/generators/rspec/view/view_generator.rb +1 -0
- data/lib/generators/rspec.rb +20 -6
- data/lib/rspec/rails/active_record.rb +25 -0
- data/lib/rspec/rails/adapters.rb +104 -37
- data/lib/rspec/rails/configuration.rb +148 -0
- data/lib/rspec/rails/example/controller_example_group.rb +188 -138
- data/lib/rspec/rails/example/feature_example_group.rb +63 -20
- data/lib/rspec/rails/example/helper_example_group.rb +35 -26
- data/lib/rspec/rails/example/job_example_group.rb +23 -0
- data/lib/rspec/rails/example/mailer_example_group.rb +30 -14
- data/lib/rspec/rails/example/model_example_group.rb +8 -7
- data/lib/rspec/rails/example/rails_example_group.rb +3 -1
- data/lib/rspec/rails/example/request_example_group.rb +23 -16
- data/lib/rspec/rails/example/routing_example_group.rb +49 -40
- data/lib/rspec/rails/example/system_example_group.rb +108 -0
- data/lib/rspec/rails/example/view_example_group.rb +168 -135
- data/lib/rspec/rails/example.rb +2 -33
- data/lib/rspec/rails/extensions/active_record/proxy.rb +0 -1
- data/lib/rspec/rails/extensions.rb +0 -1
- data/lib/rspec/rails/feature_check.rb +64 -0
- data/lib/rspec/rails/file_fixture_support.rb +17 -0
- data/lib/rspec/rails/fixture_file_upload_support.rb +40 -0
- data/lib/rspec/rails/fixture_support.rb +32 -13
- data/lib/rspec/rails/matchers/active_job.rb +317 -0
- data/lib/rspec/rails/matchers/base_matcher.rb +184 -0
- data/lib/rspec/rails/matchers/be_a_new.rb +69 -62
- data/lib/rspec/rails/matchers/be_new_record.rb +24 -21
- data/lib/rspec/rails/matchers/be_valid.rb +42 -33
- data/lib/rspec/rails/matchers/have_enqueued_mail.rb +174 -0
- data/lib/rspec/rails/matchers/have_http_status.rb +381 -0
- data/lib/rspec/rails/matchers/have_rendered.rb +54 -31
- data/lib/rspec/rails/matchers/redirect_to.rb +30 -29
- data/lib/rspec/rails/matchers/relation_match_array.rb +1 -1
- data/lib/rspec/rails/matchers/routing_matchers.rb +107 -93
- data/lib/rspec/rails/matchers.rb +13 -14
- data/lib/rspec/rails/tasks/rspec.rake +1 -1
- data/lib/rspec/rails/vendor/capybara.rb +10 -4
- data/lib/rspec/rails/version.rb +3 -1
- data/lib/rspec/rails/view_assigns.rb +18 -18
- data/lib/rspec/rails/view_path_builder.rb +29 -0
- data/lib/rspec/rails/view_rendering.rb +89 -63
- data/lib/rspec/rails/view_spec_methods.rb +56 -0
- data/lib/rspec/rails.rb +10 -10
- data/lib/rspec-rails.rb +66 -1
- data.tar.gz.sig +0 -0
- metadata +92 -77
- metadata.gz.sig +0 -0
- data/lib/autotest/rails_rspec2.rb +0 -85
- data/lib/generators/rspec/install/templates/.rspec +0 -1
- data/lib/generators/rspec/install/templates/spec/spec_helper.rb.tt +0 -49
- data/lib/rspec/rails/extensions/active_record/base.rb +0 -58
- data/lib/rspec/rails/matchers/have_extension.rb +0 -36
- data/lib/rspec/rails/mocks.rb +0 -274
- data/lib/rspec/rails/module_inclusion.rb +0 -19
- data/lib/rspec/rails/vendor/webrat.rb +0 -33
data/Changelog.md
CHANGED
@@ -1,16 +1,570 @@
|
|
1
|
-
###
|
2
|
-
[
|
1
|
+
### 3.9.1 / 2020-03-10
|
2
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.9.0...v3.9.1)
|
3
3
|
|
4
|
-
Bug
|
4
|
+
Bug Fixes:
|
5
|
+
|
6
|
+
* Add missing require for have_enqueued_mail matcher. (Ignatius Reza, #2117)
|
7
|
+
|
8
|
+
### 3.9.0 / 2019-10-08
|
9
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.8.2...v3.9.0)
|
10
|
+
|
11
|
+
Enhancements
|
12
|
+
|
13
|
+
* Use `__dir__` instead of `__FILE__` in generated `rails_helper.rb` where
|
14
|
+
supported. (OKURA Masafumi, #2048)
|
15
|
+
* Add `have_enqueued` matcher as a "super" matcher to the `ActiveJob` matchers
|
16
|
+
making it easier to match on `ActiveJob` delivered emails. (Joel Lubrano, #2047)
|
17
|
+
* Add generator for system specs on Rails 5.1 and above. (Andrzej Sliwa, #1933)
|
18
|
+
* Add generator for generator specs. (@ConSou, #2085)
|
19
|
+
* Add option to generate routes when generating controller specs. (David Revelo, #2134)
|
20
|
+
|
21
|
+
Bug Fixes:
|
22
|
+
|
23
|
+
* Make the `ActiveJob` matchers fail when multiple jobs are queued for negated
|
24
|
+
matches. e.g. `expect { job; job; }.to_not have_enqueued_job.
|
25
|
+
(Emric Istanful, #2069)
|
26
|
+
|
27
|
+
### 3.8.3 / 2019-10-03
|
28
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.8.2...master)
|
29
|
+
|
30
|
+
Bug Fixes:
|
31
|
+
|
32
|
+
* Namespaced fixtures now generate a `/` seperated path rather than an `_`.
|
33
|
+
(@nxlith, #2077)
|
34
|
+
* Check the arity of `errors` before attempting to use it to generate the `be_valid`
|
35
|
+
error message. (Kevin Kuchta, #2096)
|
36
|
+
|
37
|
+
### 3.8.2 / 2019-01-13
|
38
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.8.1...v3.8.2)
|
39
|
+
|
40
|
+
Bug Fixes:
|
41
|
+
|
42
|
+
* Fix issue with generator for preview specs where `Mailer` would be duplicated
|
43
|
+
in the name. (Kohei Sugi, #2037)
|
44
|
+
* Fix the request spec generator to handle namespaced files. (Kohei Sugi, #2057)
|
45
|
+
* Further truncate system test filenames to handle cases when extra words are
|
46
|
+
prepended. (Takumi Kaji, #2058)
|
47
|
+
* Backport: Make the `ActiveJob` matchers fail when multiple jobs are queued
|
48
|
+
for negated matches. e.g. `expect { job; job; }.to_not have_enqueued_job
|
49
|
+
(Emric Istanful, #2069)
|
50
|
+
|
51
|
+
### 3.8.1 / 2018-10-23
|
52
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.8.0...v3.8.1)
|
53
|
+
|
54
|
+
Bug Fixes:
|
55
|
+
|
56
|
+
* Fix `NoMethodError: undefined method 'strip'` when using a `Pathname` object
|
57
|
+
as the fixture file path. (Aaron Kromer, #2026)
|
58
|
+
* When generating feature specs, do not duplicate namespace in the path name.
|
59
|
+
(Laura Paakkinen, #2034)
|
60
|
+
* Prevent `ActiveJob::DeserializationError` from being issued when `ActiveJob`
|
61
|
+
matchers de-serialize arguments. (@aymeric-ledorze, #2036)
|
62
|
+
|
63
|
+
### 3.8.0 / 2018-08-04
|
64
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.7.2...v3.8.0)
|
65
|
+
|
66
|
+
Enhancements:
|
67
|
+
|
68
|
+
* Improved message when migrations are pending in the default `rails_helper.rb`
|
69
|
+
(Koichi ITO, #1924)
|
70
|
+
* `have_http_status` matcher now supports Rails 5.2 style response symbols
|
71
|
+
(Douglas Lovell, #1951)
|
72
|
+
* Change generated Rails helper to match Rails standards for Rails.root
|
73
|
+
(Alessandro Rodi, #1960)
|
74
|
+
* At support for asserting enqueued jobs have no wait period attached.
|
75
|
+
(Brad Charna, #1977)
|
76
|
+
* Cache instances of `ActionView::Template` used in `stub_template` resulting
|
77
|
+
in increased performance due to less allocations and setup. (Simon Coffey, #1979)
|
78
|
+
* Rails scaffold generator now respects longer namespaces (e.g. api/v1/\<thing\>).
|
79
|
+
(Laura Paakkinen, #1958)
|
80
|
+
|
81
|
+
Bug Fixes:
|
82
|
+
|
83
|
+
* Escape quotation characters when producing method names for system spec
|
84
|
+
screenshots. (Shane Cavanaugh, #1955)
|
85
|
+
* Use relative path for resolving fixtures when `fixture_path` is not set.
|
86
|
+
(Laurent Cobos, #1943)
|
87
|
+
* Allow custom template resolvers in view specs. (@ahorek, #1941)
|
88
|
+
|
89
|
+
|
90
|
+
### 3.7.2 / 2017-11-20
|
91
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.7.1...v3.7.2)
|
92
|
+
|
93
|
+
Bug Fixes:
|
94
|
+
|
95
|
+
* Delay loading system test integration until used. (Jon Rowe, #1903)
|
96
|
+
* Ensure specs using the aggregate failures feature take screenshots on failure.
|
97
|
+
(Matt Brictson, #1907)
|
98
|
+
|
99
|
+
### 3.7.1 / 2017-10-18
|
100
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.7.0...v3.7.1)
|
101
|
+
|
102
|
+
Bug Fixes:
|
103
|
+
|
104
|
+
* Prevent system test integration loading when puma or capybara are missing (Sam Phippen, #1884)
|
105
|
+
|
106
|
+
### 3.7.0 / 2017-10-17
|
107
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.6.0...v3.7.0)
|
108
|
+
|
109
|
+
Bug Fixes:
|
110
|
+
|
111
|
+
* Prevent "template not rendered" log message from erroring in threaded
|
112
|
+
environments. (Samuel Cochran, #1831)
|
113
|
+
* Correctly generate job name in error message. (Wojciech Wnętrzak, #1814)
|
114
|
+
|
115
|
+
Enhancements:
|
116
|
+
|
117
|
+
* Allow `be_a_new(...).with(...)` matcher to accept matchers for
|
118
|
+
attribute values. (Britni Alexander, #1811)
|
119
|
+
* Only configure RSpec Mocks if it is fully loaded. (James Adam, #1856)
|
120
|
+
* Integrate with `ActionDispatch::SystemTestCase`. (Sam Phippen, #1813)
|
121
|
+
|
122
|
+
### 3.6.0 / 2017-05-04
|
123
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.6.0.beta2...v3.6.0)
|
124
|
+
|
125
|
+
Enhancements:
|
126
|
+
|
127
|
+
* Add compatibility for Rails 5.1. (Sam Phippen, Yuichiro Kaneko, #1790)
|
128
|
+
|
129
|
+
Bug Fixes:
|
130
|
+
|
131
|
+
* Fix scaffold generator so that it does not generate broken controller specs
|
132
|
+
on Rails 3.x and 4.x. (Yuji Nakayama, #1710)
|
133
|
+
|
134
|
+
### 3.6.0.beta2 / 2016-12-12
|
135
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.6.0.beta1...v3.6.0.beta2)
|
136
|
+
|
137
|
+
Enhancements:
|
138
|
+
|
139
|
+
* Improve failure output of ActiveJob matchers by listing queued jobs.
|
140
|
+
(Wojciech Wnętrzak, #1722)
|
141
|
+
* Load `spec_helper.rb` earlier in `rails_helper.rb` by default.
|
142
|
+
(Kevin Glowacz, #1795)
|
143
|
+
|
144
|
+
### 3.6.0.beta1 / 2016-10-09
|
145
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.5.2...v3.6.0.beta1)
|
146
|
+
|
147
|
+
Enhancements:
|
148
|
+
|
149
|
+
* Add support for `rake notes` in Rails `>= 5.1`. (John Meehan, #1661)
|
150
|
+
* Remove `assigns` and `assert_template` from scaffold spec generators (Josh
|
151
|
+
Justice, #1689)
|
152
|
+
* Add support for generating scaffolds for api app specs. (Krzysztof Zych, #1685)
|
153
|
+
|
154
|
+
### 3.5.2 / 2016-08-26
|
155
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.5.1...v3.5.2)
|
156
|
+
|
157
|
+
Bug Fixes:
|
158
|
+
|
159
|
+
* Stop unnecessarily loading `rspec/core` from `rspec/rails` to avoid
|
160
|
+
IRB context warning. (Myron Marston, #1678)
|
161
|
+
* Deserialize arguments within ActiveJob matchers correctly.
|
162
|
+
(Wojciech Wnętrzak, #1684)
|
163
|
+
|
164
|
+
### 3.5.1 / 2016-07-08
|
165
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.5.0...v3.5.1)
|
166
|
+
|
167
|
+
Bug Fixes:
|
168
|
+
|
169
|
+
* Only attempt to load `ActionDispatch::IntegrationTest::Behavior` on Rails 5,
|
170
|
+
and above; Prevents possible `TypeError` when an existing `Behaviour` class
|
171
|
+
is defined. (#1660, Betesh).
|
172
|
+
|
173
|
+
### 3.5.0 / 2016-07-01
|
174
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.5.0.beta4...v3.5.0)
|
175
|
+
|
176
|
+
**No user facing changes since beta4**
|
177
|
+
|
178
|
+
### 3.5.0.beta4 / 2016-06-05
|
179
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.5.0.beta3...v3.5.0.beta4)
|
180
|
+
|
181
|
+
Enhancements:
|
182
|
+
|
183
|
+
* Add support for block when using `with` on `have_enqueued_job`. (John Schroeder, #1578)
|
184
|
+
* Add support for `file_fixture(...)`. (Wojciech Wnętrzak, #1587)
|
185
|
+
* Add support for `setup` and `teardown` with blocks (Miklós Fazekas, #1598)
|
186
|
+
* Add `enqueue_job ` alias for `have_enqueued_job`, support `once`/`twice`/
|
187
|
+
`thrice`, add `have_been_enqueued` matcher to support use without blocks.
|
188
|
+
(Sergey Alexandrovich, #1613)
|
189
|
+
|
190
|
+
Bug fixes:
|
191
|
+
|
192
|
+
* Prevent asset helpers from taking precendence over route helpers. (Prem Sichanugrist, #1496)
|
193
|
+
* Prevent `NoMethodError` during failed `have_rendered` assertions on weird templates.
|
194
|
+
(Jon Rowe, #1623).
|
195
|
+
|
196
|
+
### 3.5.0.beta3 / 2016-04-02
|
197
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.5.0.beta2...v3.5.0.beta3)
|
198
|
+
|
199
|
+
Enhancements:
|
200
|
+
|
201
|
+
* Add support for Rails 5 Beta 3 (Sam Phippen, Benjamin Quorning, Koen Punt, #1589, #1573)
|
202
|
+
|
203
|
+
Bug fixes:
|
204
|
+
|
205
|
+
* Support custom resolvers when preventing views from rendering.
|
206
|
+
(Jon Rowe, Benjamin Quorning, #1580)
|
207
|
+
|
208
|
+
### 3.5.0.beta2 / 2016-03-10
|
209
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.5.0.beta1...v3.5.0.beta2)
|
210
|
+
|
211
|
+
Enhancements:
|
212
|
+
|
213
|
+
* Include `ActionDispatch::IntegrationTest::Behavior` in request spec
|
214
|
+
example groups when on Rails 5, allowing integration test helpers
|
215
|
+
to be used in request specs. (Scott Bronson, #1560)
|
216
|
+
|
217
|
+
Bug fixes:
|
218
|
+
|
219
|
+
* Make it possible to use floats in auto generated (scaffold) tests.
|
220
|
+
(Alwahsh, #1550)
|
221
|
+
|
222
|
+
### 3.5.0.beta1 / 2016-02-06
|
223
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.4.2...v3.5.0.beta1)
|
224
|
+
|
225
|
+
Enhancements:
|
226
|
+
|
227
|
+
* Add a `--singularize` option for the feature spec generator (Felicity McCabe,
|
228
|
+
#1503)
|
229
|
+
* Prevent leaking TestUnit methods in Rails 4+ (Fernando Seror Garcia, #1512)
|
230
|
+
* Add support for Rails 5 (Sam Phippen, #1492)
|
231
|
+
|
232
|
+
Bug fixes:
|
233
|
+
|
234
|
+
* Make it possible to write nested specs within helper specs on classes that are
|
235
|
+
internal to helper classes. (Sam Phippen, Peter Swan, #1499).
|
236
|
+
* Warn if a fixture method is called from a `before(:context)` block, instead of
|
237
|
+
crashing with a `undefined method for nil:NilClass`. (Sam Phippen, #1501)
|
238
|
+
* Expose path to view specs (Ryan Clark, Sarah Mei, Sam Phippen, #1402)
|
239
|
+
* Prevent installing Rails 3.2.22.1 on Ruby 1.8.7. (Jon Rowe, #1540)
|
240
|
+
* Raise a clear error when `have_enqueued_job` is used with non-test
|
241
|
+
adapter. (Wojciech Wnętrzak, #1489)
|
242
|
+
|
243
|
+
### 3.4.2 / 2016-02-02
|
244
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.4.1...v3.4.2)
|
245
|
+
|
246
|
+
Bug Fixes:
|
247
|
+
|
248
|
+
* Cache template resolvers during path lookup to prevent performance
|
249
|
+
regression from #1535. (Andrew White, #1544)
|
250
|
+
|
251
|
+
### 3.4.1 / 2016-01-25
|
252
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.4.0...v3.4.1)
|
253
|
+
|
254
|
+
Bug Fixes:
|
255
|
+
|
256
|
+
* Fix no method error when rendering templates with explicit `:file`
|
257
|
+
parameters for Rails version `4.2.5.1`. (Andrew White, Sam Phippen, #1535)
|
258
|
+
|
259
|
+
### 3.4.0 / 2015-11-11
|
260
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.3.3...v3.4.0)
|
261
|
+
|
262
|
+
Enhancements:
|
263
|
+
|
264
|
+
* Improved the failure message for `have_rendered` matcher on a redirect
|
265
|
+
response. (Alex Egan, #1440)
|
266
|
+
* Add configuration option to filter out Rails gems from backtraces.
|
267
|
+
(Bradley Schaefer, #1458)
|
268
|
+
* Enable resolver cache for view specs for a large speed improvement
|
269
|
+
(Chris Zetter, #1452)
|
270
|
+
* Add `have_enqueued_job` matcher for checking if a block has queued jobs.
|
271
|
+
(Wojciech Wnętrzak, #1464)
|
272
|
+
|
273
|
+
Bug Fixes:
|
274
|
+
|
275
|
+
* Fix another load order issued which causes an undefined method `fixture_path` error
|
276
|
+
when loading rspec-rails after a spec has been created. (Nikki Murray, #1430)
|
277
|
+
* Removed incorrect surrounding whitespace in the rspec-rails backtrace
|
278
|
+
exclusion pattern for its own `lib` code. (Jam Black, #1439)
|
279
|
+
|
280
|
+
### 3.3.3 / 2015-07-15
|
281
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.3.2...v3.3.3)
|
282
|
+
|
283
|
+
Bug Fixes:
|
284
|
+
|
285
|
+
* Fix issue with generators caused by `Rails.configuration.hidden_namespaces`
|
286
|
+
including symbols. (Dan Kohn, #1414)
|
287
|
+
|
288
|
+
### 3.3.2 / 2015-06-18
|
289
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.3.1...v3.3.2)
|
290
|
+
|
291
|
+
Bug Fixes:
|
5
292
|
|
293
|
+
* Fix regression that caused stubbing abstract ActiveRecord model
|
294
|
+
classes to trigger internal errors in rails due the the verifying
|
295
|
+
double lifecycle wrongly calling `define_attribute_methods` on the
|
296
|
+
abstract AR class. (Jon Rowe, #1396)
|
297
|
+
|
298
|
+
### 3.3.1 / 2015-06-14
|
299
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.3.0...v3.3.1)
|
300
|
+
|
301
|
+
Bug Fixes:
|
302
|
+
|
303
|
+
* Fix regression that caused stubbing ActiveRecord model classes to
|
304
|
+
trigger internal errors in rails. (Myron Marston, Aaron Kromer, #1395)
|
305
|
+
|
306
|
+
### 3.3.0 / 2015-06-12
|
307
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.2.3...v3.3.0)
|
308
|
+
|
309
|
+
Enhancements:
|
310
|
+
|
311
|
+
* Add support for PATCH to route specs created via scaffold. (Igor Zubkov, #1336)
|
312
|
+
* Improve controller and routing spec calls to `routes` by using `yield`
|
313
|
+
instead of `call`. (Anton Davydov, #1308)
|
314
|
+
* Add support for `ActiveJob` specs as standard `RSpec::Rails::RailsExampleGoup`s
|
315
|
+
via both `:type => :job` and inferring type from spec directory `spec/jobs`.
|
316
|
+
(Gabe Martin-Dempesy, #1361)
|
317
|
+
* Include `RSpec::Rails::FixtureSupport` into example groups using metadata
|
318
|
+
`:use_fixtures => true`. (Aaron Kromer, #1372)
|
319
|
+
* Include `rspec:request` generator for generating request specs; this is an
|
320
|
+
alias of `rspec:integration` (Aaron Kromer, #1378)
|
321
|
+
* Update `rails_helper` generator with a default check to abort the spec run
|
322
|
+
when the Rails environment is production. (Aaron Kromer, #1383)
|
323
|
+
|
324
|
+
### 3.2.3 / 2015-06-06
|
325
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.2.2...v3.2.3)
|
326
|
+
|
327
|
+
Bug Fixes:
|
328
|
+
|
329
|
+
* Fix regression with the railtie resulting in undefined method `preview_path=`
|
330
|
+
on Rails 3.x and 4.0 (Aaron Kromer, #1388)
|
331
|
+
|
332
|
+
### 3.2.2 / 2015-06-03
|
333
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.2.1...v3.2.2)
|
334
|
+
|
335
|
+
Bug Fixes:
|
336
|
+
|
337
|
+
* Fix auto-including of generic `Helper` object for view specs sitting in the
|
338
|
+
`app/views` root (David Daniell, #1289)
|
339
|
+
* Remove pre-loading of ActionMailer in the Railtie (Aaron Kromer, #1327)
|
340
|
+
* Fix undefined method `need_auto_run=` error when using Ruby 2.1 and Rails 3.2
|
341
|
+
without the test-unit gem (Orien Madgwick, #1350)
|
342
|
+
* Fix load order issued which causes an undefined method `fixture_path` error
|
343
|
+
when loading rspec-rails after a spec has been created. (Aaron Kromer, #1372)
|
344
|
+
|
345
|
+
### 3.2.1 / 2015-02-23
|
346
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.2.0...v3.2.1)
|
347
|
+
|
348
|
+
Bug Fixes:
|
349
|
+
|
350
|
+
* Add missing `require` to RSpec generator root fixing an issue where Rail's
|
351
|
+
autoload does not find it in some environments. (Aaron Kromer, #1305)
|
352
|
+
* `be_routable` matcher now has the correct description. (Tony Ta, #1310)
|
353
|
+
* Fix dependency to allow Rails 4.2.x patches / pre-releases (Lucas Mazza, #1318)
|
354
|
+
* Disable the `test-unit` gem's autorunner on projects running Rails < 4.1 and
|
355
|
+
Ruby < 2.2 (Aaron Kromer, #1320)
|
356
|
+
|
357
|
+
### 3.2.0 / 2015-02-03
|
358
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.1.0...v3.2.0)
|
359
|
+
|
360
|
+
Enhancements:
|
361
|
+
|
362
|
+
* Include generator for `ActionMailer` mailer previews (Takashi Nakagawa, #1185)
|
363
|
+
* Configure the `ActionMailer` preview path via a Railtie (Aaron Kromer, #1236)
|
364
|
+
* Show all RSpec generators when running `rails generate` (Eliot Sykes, #1248)
|
365
|
+
* Support Ruby 2.2 with Rails 3.2 and 4.x (Aaron Kromer, #1264, #1277)
|
366
|
+
* Improve `instance_double` to support verifying dynamic column methods defined
|
367
|
+
by `ActiveRecord` (Jon Rowe, #1238)
|
368
|
+
* Mirror the use of Ruby 1.9 hash syntax for the `type` tags in the spec
|
369
|
+
generators on Rails 4. (Michael Stock, #1292)
|
370
|
+
|
371
|
+
Bug Fixes:
|
372
|
+
|
373
|
+
* Fix `rspec:feature` generator to use `RSpec` namespace preventing errors when
|
374
|
+
monkey-patching is disabled. (Rebecca Skinner, #1231)
|
375
|
+
* Fix `NoMethodError` caused by calling `RSpec.feature` when Capybara is not
|
376
|
+
available or the Capybara version is < 2.4.0. (Aaron Kromer, #1261)
|
377
|
+
* Fix `ArgumentError` when using an anonymous controller which inherits an
|
378
|
+
outer group's anonymous controller. (Yuji Nakayama, #1260)
|
379
|
+
* Fix "Test is not a class (TypeError)" error when using a custom `Test` class
|
380
|
+
in Rails 4.1 and 4.2. (Aaron Kromer, #1295)
|
381
|
+
|
382
|
+
### 3.1.0 / 2014-09-04
|
383
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.0.2...v3.1.0)
|
384
|
+
|
385
|
+
Enhancements:
|
386
|
+
|
387
|
+
* Switch to using the `have_http_status` matcher in spec generators. (Aaron Kromer, #1086)
|
388
|
+
* Update `rails_helper` generator to allow users to opt-in to auto-loading
|
389
|
+
`spec/support` files instead of forcing it upon them. (Aaron Kromer, #1137)
|
390
|
+
* Include generator for `ActiveJob`. (Abdelkader Boudih, #1155)
|
391
|
+
* Improve support for non-ActiveRecord apps by not loading ActiveRecord related
|
392
|
+
settings in the generated `rails_helper`. (Aaron Kromer, #1150)
|
393
|
+
* Remove Ruby warnings as a suggested configuration. (Aaron Kromer, #1163)
|
394
|
+
* Improve the semantics of the controller spec for scaffolds. (Griffin Smith, #1204)
|
395
|
+
* Use `#method` syntax in all generated controller specs. (Griffin Smith, #1206)
|
396
|
+
|
397
|
+
Bug Fixes:
|
398
|
+
|
399
|
+
* Fix controller route lookup for Rails 4.2. (Tomohiro Hashidate, #1142)
|
400
|
+
|
401
|
+
### 3.0.2 / 2014-07-21
|
402
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.0.1...v3.0.2)
|
403
|
+
|
404
|
+
Bug Fixes:
|
405
|
+
|
406
|
+
* Suppress warning in `SetupAndTeardownAdapter`. (André Arko, #1085)
|
407
|
+
* Remove dependency on Rubygems. (Andre Arko & Doc Riteze, #1099)
|
408
|
+
* Standardize controller spec template style. (Thomas Kriechbaumer, #1122)
|
409
|
+
|
410
|
+
### 3.0.1 / 2014-06-02
|
411
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.0.0...v3.0.1)
|
412
|
+
|
413
|
+
Bug Fixes:
|
414
|
+
|
415
|
+
* Fix missing require in `rails g rspec:install`. (Sam Phippen, #1058)
|
416
|
+
|
417
|
+
### 3.0.0 / 2014-06-01
|
418
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.0.0.rc1...v3.0.0)
|
419
|
+
|
420
|
+
Enhancements:
|
421
|
+
|
422
|
+
* Separate RSpec configuration in generated `spec_helper` from Rails setup
|
423
|
+
and associated configuration options. Moving Rails specific settings and
|
424
|
+
options to `rails_helper`. (Aaron Kromer)
|
425
|
+
|
426
|
+
Bug Fixes:
|
427
|
+
|
428
|
+
* Fix an issue with fixture support when `ActiveRecord` isn't loaded. (Jon Rowe)
|
429
|
+
|
430
|
+
### 3.0.0.rc1 / 2014-05-18
|
431
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.0.0.beta2...v3.0.0.rc1)
|
432
|
+
|
433
|
+
Breaking Changes for 3.0.0:
|
434
|
+
|
435
|
+
* Extracts the `mock_model` and `stub_model` methods to the
|
436
|
+
`rspec-activemodel-mocks` gem. (Thomas Holmes)
|
437
|
+
* Spec types are no longer inferred by location, they instead need to be
|
438
|
+
explicitly tagged. The old behaviour is enabled by
|
439
|
+
`config.infer_spec_type_from_file_location!`, which is still supplied
|
440
|
+
in the default generated `spec_helper.rb`. (Xavier Shay, Myron Marston)
|
441
|
+
* `controller` macro in controller specs no longer mutates
|
442
|
+
`:described_class` metadata. It still overrides the subject and sets
|
443
|
+
the controller, though. (Myron Marston)
|
444
|
+
* Stop depending on or requiring `rspec-collection_matchers`. Users who
|
445
|
+
want those matchers should add the gem to their Gemfile and require it
|
446
|
+
themselves. (Myron Marston)
|
447
|
+
* Removes runtime dependency on `ActiveModel`. (Rodrigo Rosenfeld Rosas)
|
448
|
+
|
449
|
+
Enhancements:
|
450
|
+
|
451
|
+
* Supports Rails 4.x reference attribute ids in generated scaffold for view
|
452
|
+
specs. (Giovanni Cappellotto)
|
453
|
+
* Add `have_http_status` matcher. (Aaron Kromer)
|
454
|
+
* Add spec type metadata to generator templates. (Aaron Kromer)
|
455
|
+
|
456
|
+
Bug Fixes:
|
457
|
+
|
458
|
+
* Fix an inconsistency in the generated scaffold specs for a controller. (Andy Waite)
|
459
|
+
* Ensure `config.before(:all, :type => <type>)` hooks run before groups
|
460
|
+
of the given type, even when the type is inferred by the file
|
461
|
+
location. (Jon Rowe, Myron Marston)
|
462
|
+
* Switch to parsing params with `Rack::Utils::parse_nested_query` to match Rails.
|
463
|
+
(Tim Watson)
|
464
|
+
* Fix incorrect namespacing of anonymous controller routes. (Aaron Kromer)
|
465
|
+
|
466
|
+
### 3.0.0.beta2 / 2014-02-17
|
467
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.0.0.beta1...v3.0.0.beta2)
|
468
|
+
|
469
|
+
Breaking Changes for 3.0.0:
|
470
|
+
|
471
|
+
* Removes the `--webrat` option for the request spec generator (Andy Lindeman)
|
472
|
+
* Methods from `Capybara::DSL` (e.g., `visit`) are no longer available in
|
473
|
+
controller specs. It is more appropriate to use capybara in feature specs
|
474
|
+
(`spec/features`) instead. (Andy Lindeman)
|
475
|
+
* `infer_base_class_for_anonymous_controllers` is
|
476
|
+
enabled by default. (Thomas Holmes)
|
477
|
+
* Capybara 2.2.0 or above is required for feature specs. (Andy Lindeman)
|
478
|
+
|
479
|
+
Enhancements:
|
480
|
+
|
481
|
+
* Improve `be_valid` matcher for non-ActiveModel::Errors implementations (Ben Hamill)
|
482
|
+
|
483
|
+
Bug Fixes:
|
484
|
+
|
485
|
+
* Use `__send__` rather than `send` to prevent naming collisions (Bradley Schaefer)
|
486
|
+
* Supports Rails 4.1. (Andy Lindeman)
|
487
|
+
* Routes are drawn correctly for anonymous controllers with abstract
|
488
|
+
parents. (Billy Chan)
|
489
|
+
* Loads ActiveSupport properly to support changes in Rails 4.1. (Andy Lindeman)
|
490
|
+
* Anonymous controllers inherit from `ActionController::Base` if `ApplicationController`
|
491
|
+
is not present. (Jon Rowe)
|
492
|
+
* Require `rspec/collection_matchers` when `rspec/rails` is required. (Yuji Nakayama)
|
493
|
+
|
494
|
+
### 3.0.0.beta1 / 2013-11-07
|
495
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.99.0...v3.0.0.beta1)
|
496
|
+
|
497
|
+
Breaking Changes for 3.0.0:
|
498
|
+
|
499
|
+
* Extracts `autotest` and `autotest-rails` support to `rspec-autotest` gem.
|
500
|
+
(Andy Lindeman)
|
501
|
+
|
502
|
+
### 2.99.0 / 2014-06-01
|
503
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.99.0.rc1...v2.99.0)
|
504
|
+
|
505
|
+
No changes. Just taking it out of pre-release.
|
506
|
+
|
507
|
+
### 2.99.0.rc1 / 2014-05-18
|
508
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.99.0.beta2...v2.99.0.rc1)
|
509
|
+
|
510
|
+
Deprecations
|
511
|
+
|
512
|
+
* Deprecates `stub_model` and `mock_model` in favor of the
|
513
|
+
`rspec-activemodel-mocks` gem. (Thomas Holmes)
|
514
|
+
* Issue a deprecation to instruct users to configure
|
515
|
+
`config.infer_spec_type_from_file_location!` during the
|
516
|
+
upgrade process since spec type inference is opt-in in 3.0.
|
517
|
+
(Jon Rowe)
|
518
|
+
* Issue a deprecation when `described_class` is accessed in a controller
|
519
|
+
example group that has used the `controller { }` macro to generate an
|
520
|
+
anonymous controller class, since in 2.x, `described_class` would
|
521
|
+
return that generated class but in 3.0 it will continue returning the
|
522
|
+
class passed to `describe`. (Myron Marston)
|
523
|
+
|
524
|
+
### 2.99.0.beta2 / 2014-02-17
|
525
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.99.0.beta1...v2.99.0.beta2)
|
526
|
+
|
527
|
+
Deprecations:
|
528
|
+
|
529
|
+
* Deprecates the `--webrat` option to the scaffold and request spec generator (Andy Lindeman)
|
530
|
+
* Deprecates the use of `Capybara::DSL` (e.g., `visit`) in controller specs.
|
531
|
+
It is more appropriate to use capybara in feature specs (`spec/features`)
|
532
|
+
instead. (Andy Lindeman)
|
533
|
+
|
534
|
+
Bug Fixes:
|
535
|
+
|
536
|
+
* Use `__send__` rather than `send` to prevent naming collisions (Bradley Schaefer)
|
537
|
+
* Supports Rails 4.1. (Andy Lindeman)
|
6
538
|
* Loads ActiveSupport properly to support changes in Rails 4.1. (Andy Lindeman)
|
7
539
|
* Anonymous controllers inherit from `ActionController::Base` if `ApplicationController`
|
8
540
|
is not present. (Jon Rowe)
|
9
541
|
|
542
|
+
### 2.99.0.beta1 / 2013-11-07
|
543
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.14.0...v2.99.0.beta1)
|
544
|
+
|
545
|
+
Deprecations:
|
546
|
+
|
547
|
+
* Deprecates autotest integration in favor of the `rspec-autotest` gem. (Andy
|
548
|
+
Lindeman)
|
549
|
+
|
550
|
+
Enhancements:
|
551
|
+
|
552
|
+
* Supports Rails 4.1 and Minitest 5. (Patrick Van Stee)
|
553
|
+
|
554
|
+
Bug Fixes:
|
555
|
+
|
556
|
+
* Fixes "warning: instance variable @orig\_routes not initialized" raised by
|
557
|
+
controller specs when `--warnings` are enabled. (Andy Lindeman)
|
558
|
+
* Where possible, check against the version of ActiveRecord, rather than
|
559
|
+
Rails. It is possible to use some of rspec-rails without all of Rails.
|
560
|
+
(Darryl Pogue)
|
561
|
+
* Explicitly depends on `activemodel`. This allows libraries that do not bring
|
562
|
+
in all of `rails` to use `rspec-rails`. (John Firebaugh)
|
563
|
+
|
10
564
|
### 2.14.1 / 2013-12-29
|
11
565
|
[full changelog](http://github.com/rspec/rspec-rails/compare/v2.14.0...v2.14.1)
|
12
566
|
|
13
|
-
Bug
|
567
|
+
Bug Fixes:
|
14
568
|
|
15
569
|
* Fixes "warning: instance variable @orig\_routes not initialized" raised by
|
16
570
|
controller specs when `--warnings` are enabled. (Andy Lindeman)
|
@@ -23,7 +577,7 @@ Bug fixes
|
|
23
577
|
* Use `__send__` rather than `send` to prevent naming collisions (Bradley Schaefer)
|
24
578
|
|
25
579
|
### 2.14.0 / 2013-07-06
|
26
|
-
[
|
580
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.14.0.rc1...v2.14.0)
|
27
581
|
|
28
582
|
Bug fixes
|
29
583
|
|
@@ -35,7 +589,7 @@ Bug fixes
|
|
35
589
|
Rails 4. (Andy Lindeman)
|
36
590
|
|
37
591
|
### 2.14.0.rc1 / 2013-05-27
|
38
|
-
[
|
592
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.13.2...v2.14.0.rc1)
|
39
593
|
|
40
594
|
Enhancements
|
41
595
|
|
@@ -48,7 +602,7 @@ Bug fixes
|
|
48
602
|
spec/ directory. (Benjamin Fleischer)
|
49
603
|
|
50
604
|
### 2.13.2 / 2013-05-18
|
51
|
-
[
|
605
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.13.1...v2.13.2)
|
52
606
|
|
53
607
|
Bug fixes
|
54
608
|
|
@@ -58,8 +612,12 @@ Bug fixes
|
|
58
612
|
* Code that checks Rails version numbers is more robust in cases where Rails is
|
59
613
|
not fully loaded. (Andy Lindeman)
|
60
614
|
|
615
|
+
Enhancements
|
616
|
+
|
617
|
+
* Document how the spec/support directory works. (Sam Phippen)
|
618
|
+
|
61
619
|
### 2.13.1 / 2013-04-27
|
62
|
-
[
|
620
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.13.0...v2.13.1)
|
63
621
|
|
64
622
|
Bug fixes
|
65
623
|
|
@@ -73,7 +631,7 @@ Bug fixes
|
|
73
631
|
* Fix spacing in the install generator template (Taiki ONO)
|
74
632
|
|
75
633
|
### 2.13.0 / 2013-02-23
|
76
|
-
[
|
634
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.12.2...v2.13.0)
|
77
635
|
|
78
636
|
Enhancements
|
79
637
|
|
@@ -88,7 +646,7 @@ Enhancements
|
|
88
646
|
(Rudolf Schmidt)
|
89
647
|
|
90
648
|
### 2.12.2 / 2013-01-12
|
91
|
-
[
|
649
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.12.1...v2.12.2)
|
92
650
|
|
93
651
|
Bug fixes
|
94
652
|
|
@@ -100,7 +658,7 @@ Bug fixes
|
|
100
658
|
Lindeman)
|
101
659
|
|
102
660
|
### 2.12.1 / 2013-01-07
|
103
|
-
[
|
661
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.12.0...v2.12.1)
|
104
662
|
|
105
663
|
Bug fixes
|
106
664
|
|
@@ -115,7 +673,7 @@ Bug fixes
|
|
115
673
|
and generation of URLs from other contexts. (Andy Lindeman)
|
116
674
|
|
117
675
|
### 2.12.0 / 2012-11-12
|
118
|
-
[
|
676
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.11.4...v2.12.0)
|
119
677
|
|
120
678
|
Enhancements
|
121
679
|
|
@@ -136,7 +694,7 @@ Bug fixes
|
|
136
694
|
* Failures message for `be_new_record` are more useful (Andy Lindeman)
|
137
695
|
|
138
696
|
### 2.11.4 / 2012-10-14
|
139
|
-
[
|
697
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.11.0...v2.11.4)
|
140
698
|
|
141
699
|
Capybara-2.0 integration support:
|
142
700
|
|
@@ -150,7 +708,7 @@ for background.
|
|
150
708
|
2.11.1, .2, .3 were yanked due to errant documentation.
|
151
709
|
|
152
710
|
### 2.11.0 / 2012-07-07
|
153
|
-
[
|
711
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.10.1...v2.11.0)
|
154
712
|
|
155
713
|
Enhancements
|
156
714
|
|
@@ -169,7 +727,7 @@ Bug fixes
|
|
169
727
|
loads (Andy Lindeman)
|
170
728
|
|
171
729
|
### 2.10.1 / 2012-05-03
|
172
|
-
[
|
730
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.10.0...v2.10.1)
|
173
731
|
|
174
732
|
Bug fixes
|
175
733
|
|
@@ -179,7 +737,7 @@ Bug fixes
|
|
179
737
|
Rails already does this (Jack Dempsey)
|
180
738
|
|
181
739
|
### 2.10.0 / 2012-05-03
|
182
|
-
[
|
740
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.9.0...v2.10.0)
|
183
741
|
|
184
742
|
Bug fixes
|
185
743
|
|
@@ -194,7 +752,7 @@ Bug fixes
|
|
194
752
|
Strother)
|
195
753
|
|
196
754
|
### 2.9.0 / 2012-03-17
|
197
|
-
[
|
755
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.8.1...v2.9.0)
|
198
756
|
|
199
757
|
Enhancements
|
200
758
|
|
@@ -209,7 +767,7 @@ Bug fixes
|
|
209
767
|
|
210
768
|
### 2.8.1 / 2012-01-04
|
211
769
|
|
212
|
-
[
|
770
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.8.0...v2.8.1)
|
213
771
|
|
214
772
|
NOTE: there was a change in rails-3.2.0.rc2 which broke compatibility with
|
215
773
|
stub_model in rspec-rails. This release fixes that issue, but it means that
|
@@ -222,7 +780,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
222
780
|
|
223
781
|
### 2.8.0 / 2012-01-04
|
224
782
|
|
225
|
-
[
|
783
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.8.0.rc2...v2.8.0)
|
226
784
|
|
227
785
|
* Enhancements
|
228
786
|
* Eliminate deprecation warnings in generated view specs in Rails 3.2
|
@@ -232,7 +790,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
232
790
|
|
233
791
|
### 2.8.0.rc2 / 2011-12-19
|
234
792
|
|
235
|
-
[
|
793
|
+
[Full Changelog](http://github.com/rspec/rspec-mocks/compare/v2.8.0.rc1...v2.8.0.rc2)
|
236
794
|
|
237
795
|
* Enhancements
|
238
796
|
* Add session hash to generated controller specs (Thiago Almeida)
|
@@ -244,7 +802,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
244
802
|
|
245
803
|
### 2.8.0.rc1 / 2011-11-06
|
246
804
|
|
247
|
-
[
|
805
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.7.0...v2.8.0.rc1)
|
248
806
|
|
249
807
|
* Enhancements
|
250
808
|
* Removed unnecessary "config.mock_with :rspec" from spec_helper.rb (Paul
|
@@ -260,7 +818,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
260
818
|
|
261
819
|
### 2.7.0 / 2011-10-16
|
262
820
|
|
263
|
-
[
|
821
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.6.1...v2.7.0)
|
264
822
|
|
265
823
|
* Enhancements
|
266
824
|
* `ActiveRecord::Relation` can use the `=~` matcher (Andy Lindeman)
|
@@ -285,7 +843,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
285
843
|
|
286
844
|
### 2.6.1 / 2011-05-25
|
287
845
|
|
288
|
-
[
|
846
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.6.0...v2.6.1)
|
289
847
|
|
290
848
|
This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
291
849
|
|
@@ -296,7 +854,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
296
854
|
|
297
855
|
### 2.6.0 / 2011-05-12
|
298
856
|
|
299
|
-
[
|
857
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.5.0...v2.6.0)
|
300
858
|
|
301
859
|
* Enhancements
|
302
860
|
* rails 3 shortcuts for routing specs (Joe Fiorini)
|
@@ -320,7 +878,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
320
878
|
|
321
879
|
### 2.5.0 / 2011-02-05
|
322
880
|
|
323
|
-
[
|
881
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.4.1...v2.5.0)
|
324
882
|
|
325
883
|
* Enhancements
|
326
884
|
* use index_helper instead of table_name when generating specs (Reza
|
@@ -335,7 +893,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
335
893
|
|
336
894
|
### 2.4.1 / 2011-01-03
|
337
895
|
|
338
|
-
[
|
896
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.4.0...v2.4.1)
|
339
897
|
|
340
898
|
* Bug fixes
|
341
899
|
* fixed bug caused by including some Rails modules before RSpec's
|
@@ -343,7 +901,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
343
901
|
|
344
902
|
### 2.4.0 / 2011-01-02
|
345
903
|
|
346
|
-
[
|
904
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.3.1...v2.4.0)
|
347
905
|
|
348
906
|
* Enhancements
|
349
907
|
* include ApplicationHelper in helper object in helper specs
|
@@ -363,7 +921,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
363
921
|
|
364
922
|
### 2.3.1 / 2010-12-16
|
365
923
|
|
366
|
-
[
|
924
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.3.0...v2.3.1)
|
367
925
|
|
368
926
|
* Bug fixes
|
369
927
|
* respond_to? correctly handles 2 args
|
@@ -371,7 +929,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
371
929
|
|
372
930
|
### 2.3.0 / 2010-12-12
|
373
931
|
|
374
|
-
[
|
932
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.2.1...v2.3.0)
|
375
933
|
|
376
934
|
* Changes
|
377
935
|
* Generator no longer generates autotest/autodiscover.rb, as it is no longer
|
@@ -379,7 +937,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
379
937
|
|
380
938
|
### 2.2.1 / 2010-12-01
|
381
939
|
|
382
|
-
[
|
940
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.2.0...v2.2.1)
|
383
941
|
|
384
942
|
* Bug fixes
|
385
943
|
* Depend on railties, activesupport, and actionpack instead of rails (Piotr
|
@@ -391,7 +949,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
391
949
|
|
392
950
|
### 2.2.0 / 2010-11-28
|
393
951
|
|
394
|
-
[
|
952
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.1.0...v2.2.0)
|
395
953
|
|
396
954
|
* Enhancements
|
397
955
|
* Added stub_template in view specs
|
@@ -406,7 +964,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
406
964
|
|
407
965
|
### 2.1.0 / 2010-11-07
|
408
966
|
|
409
|
-
[
|
967
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.0.1...v2.1.0)
|
410
968
|
|
411
969
|
* Enhancements
|
412
970
|
* Move errors_on to ActiveModel to support other AM-compliant ORMs
|
@@ -417,7 +975,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
417
975
|
|
418
976
|
### 2.0.1 / 2010-10-15
|
419
977
|
|
420
|
-
[
|
978
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v2.0.0...v2.0.1)
|
421
979
|
|
422
980
|
* Enhancements
|
423
981
|
* Add option to not generate request spec (--skip-request-specs)
|
@@ -430,7 +988,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
430
988
|
|
431
989
|
### 2.0.0 / 2010-10-10
|
432
990
|
|
433
|
-
[
|
991
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/ea6bdef...v2.0.0)
|
434
992
|
|
435
993
|
* Enhancements
|
436
994
|
* ControllerExampleGroup uses controller as the implicit subject by default (Paul Rosania)
|