rspec-rails 2.14.2 → 4.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +5 -5
  2. checksums.yaml.gz.sig +0 -0
  3. data/.document +1 -1
  4. data/.yardopts +4 -2
  5. data/Capybara.md +6 -57
  6. data/Changelog.md +715 -37
  7. data/{License.txt → LICENSE.md} +5 -2
  8. data/README.md +287 -362
  9. data/lib/generators/rspec/channel/channel_generator.rb +12 -0
  10. data/lib/generators/rspec/channel/templates/channel_spec.rb.erb +7 -0
  11. data/lib/generators/rspec/controller/controller_generator.rb +23 -5
  12. data/lib/generators/rspec/controller/templates/controller_spec.rb +5 -5
  13. data/lib/generators/rspec/controller/templates/request_spec.rb +19 -0
  14. data/lib/generators/rspec/controller/templates/routing_spec.rb +13 -0
  15. data/lib/generators/rspec/controller/templates/view_spec.rb +2 -2
  16. data/lib/generators/rspec/feature/feature_generator.rb +29 -0
  17. data/lib/generators/rspec/feature/templates/feature_singular_spec.rb +5 -0
  18. data/lib/generators/rspec/feature/templates/feature_spec.rb +5 -0
  19. data/lib/generators/rspec/generator/generator_generator.rb +24 -0
  20. data/lib/generators/rspec/generator/templates/generator_spec.rb +6 -0
  21. data/lib/generators/rspec/helper/helper_generator.rb +2 -1
  22. data/lib/generators/rspec/helper/templates/helper_spec.rb +2 -2
  23. data/lib/generators/rspec/install/install_generator.rb +44 -5
  24. data/lib/generators/rspec/install/templates/spec/rails_helper.rb +79 -0
  25. data/lib/generators/rspec/integration/integration_generator.rb +8 -13
  26. data/lib/generators/rspec/integration/templates/request_spec.rb +4 -9
  27. data/lib/generators/rspec/job/job_generator.rb +12 -0
  28. data/lib/generators/rspec/{observer/templates/observer_spec.rb → job/templates/job_spec.rb.erb} +2 -2
  29. data/lib/generators/rspec/mailbox/mailbox_generator.rb +14 -0
  30. data/lib/generators/rspec/mailbox/templates/mailbox_spec.rb.erb +7 -0
  31. data/lib/generators/rspec/mailer/mailer_generator.rb +9 -1
  32. data/lib/generators/rspec/mailer/templates/mailer_spec.rb +7 -7
  33. data/lib/generators/rspec/mailer/templates/preview.rb +13 -0
  34. data/lib/generators/rspec/model/model_generator.rb +21 -6
  35. data/lib/generators/rspec/model/templates/fixtures.yml +1 -1
  36. data/lib/generators/rspec/model/templates/model_spec.rb +2 -2
  37. data/lib/generators/rspec/request/request_generator.rb +10 -0
  38. data/lib/generators/rspec/scaffold/scaffold_generator.rb +88 -148
  39. data/lib/generators/rspec/scaffold/templates/api_controller_spec.rb +129 -0
  40. data/lib/generators/rspec/scaffold/templates/api_request_spec.rb +131 -0
  41. data/lib/generators/rspec/scaffold/templates/controller_spec.rb +105 -80
  42. data/lib/generators/rspec/scaffold/templates/edit_spec.rb +10 -14
  43. data/lib/generators/rspec/scaffold/templates/index_spec.rb +5 -12
  44. data/lib/generators/rspec/scaffold/templates/new_spec.rb +11 -15
  45. data/lib/generators/rspec/scaffold/templates/request_spec.rb +137 -0
  46. data/lib/generators/rspec/scaffold/templates/routing_spec.rb +19 -12
  47. data/lib/generators/rspec/scaffold/templates/show_spec.rb +5 -12
  48. data/lib/generators/rspec/system/system_generator.rb +26 -0
  49. data/lib/generators/rspec/system/templates/system_spec.rb +9 -0
  50. data/lib/generators/rspec/view/templates/view_spec.rb +2 -2
  51. data/lib/generators/rspec/view/view_generator.rb +3 -2
  52. data/lib/generators/rspec.rb +18 -10
  53. data/lib/rspec/rails/active_record.rb +25 -0
  54. data/lib/rspec/rails/adapters.rb +49 -47
  55. data/lib/rspec/rails/configuration.rb +194 -0
  56. data/lib/rspec/rails/example/channel_example_group.rb +93 -0
  57. data/lib/rspec/rails/example/controller_example_group.rb +188 -138
  58. data/lib/rspec/rails/example/feature_example_group.rb +43 -20
  59. data/lib/rspec/rails/example/helper_example_group.rb +28 -26
  60. data/lib/rspec/rails/example/job_example_group.rb +23 -0
  61. data/lib/rspec/rails/example/mailbox_example_group.rb +80 -0
  62. data/lib/rspec/rails/example/mailer_example_group.rb +30 -14
  63. data/lib/rspec/rails/example/model_example_group.rb +8 -7
  64. data/lib/rspec/rails/example/rails_example_group.rb +4 -2
  65. data/lib/rspec/rails/example/request_example_group.rb +23 -16
  66. data/lib/rspec/rails/example/routing_example_group.rb +49 -40
  67. data/lib/rspec/rails/example/system_example_group.rb +125 -0
  68. data/lib/rspec/rails/example/view_example_group.rb +178 -134
  69. data/lib/rspec/rails/example.rb +4 -33
  70. data/lib/rspec/rails/extensions/active_record/proxy.rb +5 -11
  71. data/lib/rspec/rails/extensions.rb +0 -1
  72. data/lib/rspec/rails/feature_check.rb +47 -0
  73. data/lib/rspec/rails/file_fixture_support.rb +17 -0
  74. data/lib/rspec/rails/fixture_file_upload_support.rb +35 -0
  75. data/lib/rspec/rails/fixture_support.rb +54 -23
  76. data/lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb +170 -0
  77. data/lib/rspec/rails/matchers/action_cable/have_streams.rb +58 -0
  78. data/lib/rspec/rails/matchers/action_cable.rb +65 -0
  79. data/lib/rspec/rails/matchers/action_mailbox.rb +64 -0
  80. data/lib/rspec/rails/matchers/active_job.rb +465 -0
  81. data/lib/rspec/rails/matchers/base_matcher.rb +179 -0
  82. data/lib/rspec/rails/matchers/be_a_new.rb +69 -62
  83. data/lib/rspec/rails/matchers/be_new_record.rb +24 -21
  84. data/lib/rspec/rails/matchers/be_valid.rb +42 -33
  85. data/lib/rspec/rails/matchers/have_enqueued_mail.rb +198 -0
  86. data/lib/rspec/rails/matchers/have_http_status.rb +385 -0
  87. data/lib/rspec/rails/matchers/have_rendered.rb +55 -31
  88. data/lib/rspec/rails/matchers/redirect_to.rb +30 -29
  89. data/lib/rspec/rails/matchers/relation_match_array.rb +2 -2
  90. data/lib/rspec/rails/matchers/routing_matchers.rb +107 -93
  91. data/lib/rspec/rails/matchers.rb +22 -14
  92. data/lib/rspec/rails/tasks/rspec.rake +8 -18
  93. data/lib/rspec/rails/vendor/capybara.rb +12 -11
  94. data/lib/rspec/rails/version.rb +3 -1
  95. data/lib/rspec/rails/view_assigns.rb +18 -18
  96. data/lib/rspec/rails/view_path_builder.rb +29 -0
  97. data/lib/rspec/rails/view_rendering.rb +100 -63
  98. data/lib/rspec/rails/view_spec_methods.rb +56 -0
  99. data/lib/rspec/rails.rb +10 -10
  100. data/lib/rspec-rails.rb +67 -3
  101. data.tar.gz.sig +0 -0
  102. metadata +121 -94
  103. metadata.gz.sig +0 -0
  104. data/lib/autotest/rails_rspec2.rb +0 -85
  105. data/lib/generators/rspec/install/templates/.rspec +0 -1
  106. data/lib/generators/rspec/install/templates/spec/spec_helper.rb.tt +0 -49
  107. data/lib/generators/rspec/observer/observer_generator.rb +0 -12
  108. data/lib/rspec/rails/extensions/active_record/base.rb +0 -58
  109. data/lib/rspec/rails/matchers/have_extension.rb +0 -36
  110. data/lib/rspec/rails/mocks.rb +0 -274
  111. data/lib/rspec/rails/module_inclusion.rb +0 -19
  112. data/lib/rspec/rails/vendor/webrat.rb +0 -33
data/Changelog.md CHANGED
@@ -1,16 +1,690 @@
1
- ### 2.14.2 / 2014-03-22
2
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.14.1...v2.14.2)
1
+ ### 4.1.2 / 2021-03-10
2
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.1.1...v4.1.2)
3
+
4
+ Bug Fixes:
5
+
6
+ * Prevent `NoMethodError` on Rails 4.2 when checking if a test is run
7
+ in transaction. (Geremia Taglialatela, #2480)
8
+
9
+ *Note* Rails 4.2 is only soft supported by the 4.x series of rspec-rails,
10
+ an exception was made here as it was a regression introduced by another
11
+ bug fix.
12
+
13
+ ### 4.1.1 / 2021-03-09
14
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.1.0...v4.1.1)
15
+
16
+ Bug Fixes:
17
+
18
+ * Remove generated specs when destroying a generated controller.
19
+ (@Naokimi, #2475)
20
+
21
+ ### 4.1.0 / 2021-03-06
22
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.2...v4.1.0)
23
+
24
+ Enhancements:
25
+
26
+ * Issue a warning when using job matchers with `#at` mis-match on `usec` precision.
27
+ (Jon Rowe, #2350)
28
+ * Generated request specs now have a bare `_spec` suffix instead of `request_spec`.
29
+ (Eloy Espinaco, Luka Lüdicke, #2355, #2356, #2378)
30
+ * Generated scaffold now includes engine route helpers when inside a mountable engine.
31
+ (Andrew W. Lee, #2372)
32
+ * Improve request spec "controller" scafold when no action is specified.
33
+ (Thomas Hareau, #2399)
34
+ * Introduce testing snippets concept (Phil Pirozhkov, Benoit Tigeot, #2423)
35
+ * Prevent collisions with `let(:name)` for Rails 6.1 and `let(:method_name)` on older
36
+ Rails. (Benoit Tigeot, #2461)
37
+
38
+ ### 4.0.2 / 2020-12-26
39
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.1...v4.0.2)
40
+
41
+ Bug Fixes:
42
+
43
+ * Indent all extra failure lines output from system specs. (Alex Robbin, #2321)
44
+ * Generated request spec for update now uses the correct let. (Paul Hanyzewski, #2344)
45
+ * Return `true`/`false` from predicate methods in config rather than raw values.
46
+ (Phil Pirozhkov, Jon Rowe, #2353, #2354)
47
+ * Remove old #fixture_path feature detection code which broke under newer Rails.
48
+ (Koen Punt, Jon Rowe, #2370)
49
+
50
+ ### 4.0.1 / 2020-05-16
51
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0...v4.0.1)
52
+
53
+ Bug Fixes:
54
+
55
+ * Remove warning when calling `driven_by` in system specs. (Aubin Lorieux, #2302)
56
+ * Fix comparison of times for `#at` in job matchers. (Jon Rowe, Markus Doits, #2304)
57
+ * Allow `have_enqueued_mail` to match when a sub class of `ActionMailer::DeliveryJob`
58
+ is set using `<Class>.delivery_job=`. (Atsushi Yoshida #2305)
59
+ * Restore Ruby 2.2.x compatibility. (Jon Rowe, #2332)
60
+ * Add `required_ruby_version` to gem spec. (Marc-André Lafortune, #2319, #2338)
61
+
62
+ ### 4.0.0 / 2020-03-24
63
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.9.1...v4.0.0)
64
+
65
+ Enhancements:
66
+
67
+ * Adds support for Rails 6. (Penelope Phippen, Benoit Tigeot, Jon Rowe, #2071)
68
+ * Adds support for JRuby on Rails 5.2 and 6
69
+ * Add support for parameterised mailers (Ignatius Reza, #2125)
70
+ * Add ActionMailbox spec helpers and test type (James Dabbs, #2119)
71
+ * Add ActionCable spec helpers and test type (Vladimir Dementyev, #2113)
72
+ * Add support for partial args when using `have_enqueued_mail`
73
+ (Ignatius Reza, #2118, #2125)
74
+ * Add support for time arguments for `have_enqueued_job` (@alpaca-tc, #2157)
75
+ * Improve path parsing in view specs render options. (John Hawthorn, #2115)
76
+ * Add routing spec template as an option for generating controller specs.
77
+ (David Revelo, #2134)
78
+ * Add argument matcher support to `have_enqueued_*` matchers. (Phil Pirozhkov, #2206)
79
+ * Switch generated templates to use ruby 1.9 hash keys. (Tanbir Hasan, #2224)
80
+ * Add `have_been_performed`/`have_performed_job`/`perform_job` ActiveJob
81
+ matchers (Isaac Seymour, #1785)
82
+ * Default to generating request specs rather than controller specs when
83
+ generating a controller (Luka Lüdicke, #2222)
84
+ * Allow `ActiveJob` matchers `#on_queue` modifier to take symbolic queue names. (Nils Sommer, #2283)
85
+ * The scaffold generator now generates request specs in preference to controller specs.
86
+ (Luka Lüdicke, #2288)
87
+ * Add configuration option to disable ActiveRecord. (Jon Rowe, Phil Pirozhkov, Hermann Mayer, #2266)
88
+ * Set `ActionDispatch::SystemTesting::Server.silence_puma = true` when running system specs.
89
+ (ta1kt0me, Benoit Tigeot, #2289)
90
+
91
+ Bug Fixes:
92
+
93
+ * `EmptyTemplateHandler.call` now needs to support an additional argument in
94
+ Rails 6. (Pavel Rosický, #2089)
95
+ * Suppress warning from `SQLite3Adapter.represent_boolean_as_integer` which is
96
+ deprecated. (Pavel Rosický, #2092)
97
+ * `ActionView::Template#formats` has been deprecated and replaced by
98
+ `ActionView::Template#format`(Seb Jacobs, #2100)
99
+ * Replace `before_teardown` as well as `after_teardown` to ensure screenshots
100
+ are generated correctly. (Jon Rowe, #2164)
101
+ * `ActionView::FixtureResolver#hash` has been renamed to `ActionView::FixtureResolver#data`.
102
+ (Penelope Phippen, #2076)
103
+ * Prevent `driven_by(:selenium)` being called due to hook precedence.
104
+ (Takumi Shotoku, #2188)
105
+ * Prevent a `WrongScopeError` being thrown during loading fixtures on Rails
106
+ 6.1 development version. (Edouard Chin, #2215)
107
+ * Fix Mocha mocking support with `should`. (Phil Pirozhkov, #2256)
108
+ * Restore previous conditional check for setting `default_url_options` in feature
109
+ specs, prevents a `NoMethodError` in some scenarios. (Eugene Kenny, #2277)
110
+ * Allow changing `ActiveJob::Base.queue_adapter` inside a system spec.
111
+ (Jonathan Rochkind, #2242)
112
+ * `rails generate generator` command now creates related spec file (Joel Azemar, #2217)
113
+ * Relax upper `capybara` version constraint to allow for Capybara 3.x (Phil Pirozhkov, #2281)
114
+ * Clear ActionMailer test mailbox after each example (Benoit Tigeot, #2293)
115
+
116
+ Breaking Changes:
117
+
118
+ * Drops support for Rails below 5.0
119
+ * Drops support for Ruby below 2.3
120
+
121
+ ### 3.9.1 / 2020-03-10
122
+ [Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.9.0...v3.9.1)
123
+
124
+ Bug Fixes:
125
+
126
+ * Add missing require for have_enqueued_mail matcher. (Ignatius Reza, #2117)
127
+
128
+ ### 3.9.0 / 2019-10-08
129
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.3...v3.9.0)
3
130
 
4
- Bug fixes
131
+ Enhancements
132
+
133
+ * Use `__dir__` instead of `__FILE__` in generated `rails_helper.rb` where
134
+ supported. (OKURA Masafumi, #2048)
135
+ * Add `have_enqueued_mail` matcher as a "super" matcher to the `ActiveJob` matchers
136
+ making it easier to match on `ActiveJob` delivered emails. (Joel Lubrano, #2047)
137
+ * Add generator for system specs on Rails 5.1 and above. (Andrzej Sliwa, #1933)
138
+ * Add generator for generator specs. (@ConSou, #2085)
139
+ * Add option to generate routes when generating controller specs. (David Revelo, #2134)
140
+
141
+ Bug Fixes:
142
+
143
+ * Make the `ActiveJob` matchers fail when multiple jobs are queued for negated
144
+ matches. e.g. `expect { job; job; }.to_not have_enqueued_job`.
145
+ (Emric Istanful, #2069)
146
+
147
+ ### 3.8.3 / 2019-10-03
148
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.2...v3.8.3)
149
+
150
+ Bug Fixes:
151
+
152
+ * Namespaced fixtures now generate a `/` seperated path rather than an `_`.
153
+ (@nxlith, #2077)
154
+ * Check the arity of `errors` before attempting to use it to generate the `be_valid`
155
+ error message. (Kevin Kuchta, #2096)
156
+
157
+ ### 3.8.2 / 2019-01-13
158
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.1...v3.8.2)
159
+
160
+ Bug Fixes:
161
+
162
+ * Fix issue with generator for preview specs where `Mailer` would be duplicated
163
+ in the name. (Kohei Sugi, #2037)
164
+ * Fix the request spec generator to handle namespaced files. (Kohei Sugi, #2057)
165
+ * Further truncate system test filenames to handle cases when extra words are
166
+ prepended. (Takumi Kaji, #2058)
167
+ * Backport: Make the `ActiveJob` matchers fail when multiple jobs are queued
168
+ for negated matches. e.g. `expect { job; job; }.to_not have_enqueued_job
169
+ (Emric Istanful, #2069)
170
+
171
+ ### 3.8.1 / 2018-10-23
172
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.0...v3.8.1)
173
+
174
+ Bug Fixes:
175
+
176
+ * Fix `NoMethodError: undefined method 'strip'` when using a `Pathname` object
177
+ as the fixture file path. (Aaron Kromer, #2026)
178
+ * When generating feature specs, do not duplicate namespace in the path name.
179
+ (Laura Paakkinen, #2034)
180
+ * Prevent `ActiveJob::DeserializationError` from being issued when `ActiveJob`
181
+ matchers de-serialize arguments. (@aymeric-ledorze, #2036)
182
+
183
+ ### 3.8.0 / 2018-08-04
184
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.2...v3.8.0)
185
+
186
+ Enhancements:
187
+
188
+ * Improved message when migrations are pending in the default `rails_helper.rb`
189
+ (Koichi ITO, #1924)
190
+ * `have_http_status` matcher now supports Rails 5.2 style response symbols
191
+ (Douglas Lovell, #1951)
192
+ * Change generated Rails helper to match Rails standards for Rails.root
193
+ (Alessandro Rodi, #1960)
194
+ * At support for asserting enqueued jobs have no wait period attached.
195
+ (Brad Charna, #1977)
196
+ * Cache instances of `ActionView::Template` used in `stub_template` resulting
197
+ in increased performance due to less allocations and setup. (Simon Coffey, #1979)
198
+ * Rails scaffold generator now respects longer namespaces (e.g. api/v1/\<thing\>).
199
+ (Laura Paakkinen, #1958)
200
+
201
+ Bug Fixes:
202
+
203
+ * Escape quotation characters when producing method names for system spec
204
+ screenshots. (Shane Cavanaugh, #1955)
205
+ * Use relative path for resolving fixtures when `fixture_path` is not set.
206
+ (Laurent Cobos, #1943)
207
+ * Allow custom template resolvers in view specs. (@ahorek, #1941)
208
+
209
+
210
+ ### 3.7.2 / 2017-11-20
211
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.1...v3.7.2)
212
+
213
+ Bug Fixes:
214
+
215
+ * Delay loading system test integration until used. (Jon Rowe, #1903)
216
+ * Ensure specs using the aggregate failures feature take screenshots on failure.
217
+ (Matt Brictson, #1907)
218
+
219
+ ### 3.7.1 / 2017-10-18
220
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.0...v3.7.1)
221
+
222
+ Bug Fixes:
223
+
224
+ * Prevent system test integration loading when puma or capybara are missing (Sam Phippen, #1884)
225
+
226
+ ### 3.7.0 / 2017-10-17
227
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0...v3.7.0)
228
+
229
+ Bug Fixes:
230
+
231
+ * Prevent "template not rendered" log message from erroring in threaded
232
+ environments. (Samuel Cochran, #1831)
233
+ * Correctly generate job name in error message. (Wojciech Wnętrzak, #1814)
234
+
235
+ Enhancements:
236
+
237
+ * Allow `be_a_new(...).with(...)` matcher to accept matchers for
238
+ attribute values. (Britni Alexander, #1811)
239
+ * Only configure RSpec Mocks if it is fully loaded. (James Adam, #1856)
240
+ * Integrate with `ActionDispatch::SystemTestCase`. (Sam Phippen, #1813)
241
+
242
+ ### 3.6.0 / 2017-05-04
243
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0.beta2...v3.6.0)
244
+
245
+ Enhancements:
246
+
247
+ * Add compatibility for Rails 5.1. (Sam Phippen, Yuichiro Kaneko, #1790)
248
+
249
+ Bug Fixes:
250
+
251
+ * Fix scaffold generator so that it does not generate broken controller specs
252
+ on Rails 3.x and 4.x. (Yuji Nakayama, #1710)
253
+
254
+ ### 3.6.0.beta2 / 2016-12-12
255
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0.beta1...v3.6.0.beta2)
256
+
257
+ Enhancements:
258
+
259
+ * Improve failure output of ActiveJob matchers by listing queued jobs.
260
+ (Wojciech Wnętrzak, #1722)
261
+ * Load `spec_helper.rb` earlier in `rails_helper.rb` by default.
262
+ (Kevin Glowacz, #1795)
263
+
264
+ ### 3.6.0.beta1 / 2016-10-09
265
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.2...v3.6.0.beta1)
266
+
267
+ Enhancements:
268
+
269
+ * Add support for `rake notes` in Rails `>= 5.1`. (John Meehan, #1661)
270
+ * Remove `assigns` and `assert_template` from scaffold spec generators (Josh
271
+ Justice, #1689)
272
+ * Add support for generating scaffolds for api app specs. (Krzysztof Zych, #1685)
273
+
274
+ ### 3.5.2 / 2016-08-26
275
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.1...v3.5.2)
276
+
277
+ Bug Fixes:
278
+
279
+ * Stop unnecessarily loading `rspec/core` from `rspec/rails` to avoid
280
+ IRB context warning. (Myron Marston, #1678)
281
+ * Deserialize arguments within ActiveJob matchers correctly.
282
+ (Wojciech Wnętrzak, #1684)
283
+
284
+ ### 3.5.1 / 2016-07-08
285
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0...v3.5.1)
286
+
287
+ Bug Fixes:
288
+
289
+ * Only attempt to load `ActionDispatch::IntegrationTest::Behavior` on Rails 5,
290
+ and above; Prevents possible `TypeError` when an existing `Behaviour` class
291
+ is defined. (#1660, Betesh).
292
+
293
+ ### 3.5.0 / 2016-07-01
294
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta4...v3.5.0)
295
+
296
+ **No user facing changes since beta4**
297
+
298
+ ### 3.5.0.beta4 / 2016-06-05
299
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta3...v3.5.0.beta4)
300
+
301
+ Enhancements:
302
+
303
+ * Add support for block when using `with` on `have_enqueued_job`. (John Schroeder, #1578)
304
+ * Add support for `file_fixture(...)`. (Wojciech Wnętrzak, #1587)
305
+ * Add support for `setup` and `teardown` with blocks (Miklós Fazekas, #1598)
306
+ * Add `enqueue_job ` alias for `have_enqueued_job`, support `once`/`twice`/
307
+ `thrice`, add `have_been_enqueued` matcher to support use without blocks.
308
+ (Sergey Alexandrovich, #1613)
309
+
310
+ Bug fixes:
311
+
312
+ * Prevent asset helpers from taking precendence over route helpers. (Prem Sichanugrist, #1496)
313
+ * Prevent `NoMethodError` during failed `have_rendered` assertions on weird templates.
314
+ (Jon Rowe, #1623).
315
+
316
+ ### 3.5.0.beta3 / 2016-04-02
317
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta2...v3.5.0.beta3)
318
+
319
+ Enhancements:
320
+
321
+ * Add support for Rails 5 Beta 3 (Sam Phippen, Benjamin Quorning, Koen Punt, #1589, #1573)
322
+
323
+ Bug fixes:
324
+
325
+ * Support custom resolvers when preventing views from rendering.
326
+ (Jon Rowe, Benjamin Quorning, #1580)
327
+
328
+ ### 3.5.0.beta2 / 2016-03-10
329
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta1...v3.5.0.beta2)
330
+
331
+ Enhancements:
332
+
333
+ * Include `ActionDispatch::IntegrationTest::Behavior` in request spec
334
+ example groups when on Rails 5, allowing integration test helpers
335
+ to be used in request specs. (Scott Bronson, #1560)
336
+
337
+ Bug fixes:
338
+
339
+ * Make it possible to use floats in auto generated (scaffold) tests.
340
+ (Alwahsh, #1550)
341
+
342
+ ### 3.5.0.beta1 / 2016-02-06
343
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.2...v3.5.0.beta1)
344
+
345
+ Enhancements:
346
+
347
+ * Add a `--singularize` option for the feature spec generator (Felicity McCabe,
348
+ #1503)
349
+ * Prevent leaking TestUnit methods in Rails 4+ (Fernando Seror Garcia, #1512)
350
+ * Add support for Rails 5 (Sam Phippen, #1492)
351
+
352
+ Bug fixes:
353
+
354
+ * Make it possible to write nested specs within helper specs on classes that are
355
+ internal to helper classes. (Sam Phippen, Peter Swan, #1499).
356
+ * Warn if a fixture method is called from a `before(:context)` block, instead of
357
+ crashing with a `undefined method for nil:NilClass`. (Sam Phippen, #1501)
358
+ * Expose path to view specs (Ryan Clark, Sarah Mei, Sam Phippen, #1402)
359
+ * Prevent installing Rails 3.2.22.1 on Ruby 1.8.7. (Jon Rowe, #1540)
360
+ * Raise a clear error when `have_enqueued_job` is used with non-test
361
+ adapter. (Wojciech Wnętrzak, #1489)
362
+
363
+ ### 3.4.2 / 2016-02-02
364
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.1...v3.4.2)
365
+
366
+ Bug Fixes:
367
+
368
+ * Cache template resolvers during path lookup to prevent performance
369
+ regression from #1535. (Andrew White, #1544)
370
+
371
+ ### 3.4.1 / 2016-01-25
372
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.0...v3.4.1)
373
+
374
+ Bug Fixes:
375
+
376
+ * Fix no method error when rendering templates with explicit `:file`
377
+ parameters for Rails version `4.2.5.1`. (Andrew White, Sam Phippen, #1535)
378
+
379
+ ### 3.4.0 / 2015-11-11
380
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.3...v3.4.0)
381
+
382
+ Enhancements:
383
+
384
+ * Improved the failure message for `have_rendered` matcher on a redirect
385
+ response. (Alex Egan, #1440)
386
+ * Add configuration option to filter out Rails gems from backtraces.
387
+ (Bradley Schaefer, #1458)
388
+ * Enable resolver cache for view specs for a large speed improvement
389
+ (Chris Zetter, #1452)
390
+ * Add `have_enqueued_job` matcher for checking if a block has queued jobs.
391
+ (Wojciech Wnętrzak, #1464)
392
+
393
+ Bug Fixes:
394
+
395
+ * Fix another load order issued which causes an undefined method `fixture_path` error
396
+ when loading rspec-rails after a spec has been created. (Nikki Murray, #1430)
397
+ * Removed incorrect surrounding whitespace in the rspec-rails backtrace
398
+ exclusion pattern for its own `lib` code. (Jam Black, #1439)
399
+
400
+ ### 3.3.3 / 2015-07-15
401
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.2...v3.3.3)
402
+
403
+ Bug Fixes:
404
+
405
+ * Fix issue with generators caused by `Rails.configuration.hidden_namespaces`
406
+ including symbols. (Dan Kohn, #1414)
407
+
408
+ ### 3.3.2 / 2015-06-18
409
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.1...v3.3.2)
410
+
411
+ Bug Fixes:
412
+
413
+ * Fix regression that caused stubbing abstract ActiveRecord model
414
+ classes to trigger internal errors in rails due the the verifying
415
+ double lifecycle wrongly calling `define_attribute_methods` on the
416
+ abstract AR class. (Jon Rowe, #1396)
5
417
 
418
+ ### 3.3.1 / 2015-06-14
419
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.0...v3.3.1)
420
+
421
+ Bug Fixes:
422
+
423
+ * Fix regression that caused stubbing ActiveRecord model classes to
424
+ trigger internal errors in rails. (Myron Marston, Aaron Kromer, #1395)
425
+
426
+ ### 3.3.0 / 2015-06-12
427
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.3...v3.3.0)
428
+
429
+ Enhancements:
430
+
431
+ * Add support for PATCH to route specs created via scaffold. (Igor Zubkov, #1336)
432
+ * Improve controller and routing spec calls to `routes` by using `yield`
433
+ instead of `call`. (Anton Davydov, #1308)
434
+ * Add support for `ActiveJob` specs as standard `RSpec::Rails::RailsExampleGoup`s
435
+ via both `type: :job` and inferring type from spec directory `spec/jobs`.
436
+ (Gabe Martin-Dempesy, #1361)
437
+ * Include `RSpec::Rails::FixtureSupport` into example groups using metadata
438
+ `use_fixtures: true`. (Aaron Kromer, #1372)
439
+ * Include `rspec:request` generator for generating request specs; this is an
440
+ alias of `rspec:integration` (Aaron Kromer, #1378)
441
+ * Update `rails_helper` generator with a default check to abort the spec run
442
+ when the Rails environment is production. (Aaron Kromer, #1383)
443
+
444
+ ### 3.2.3 / 2015-06-06
445
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.2...v3.2.3)
446
+
447
+ Bug Fixes:
448
+
449
+ * Fix regression with the railtie resulting in undefined method `preview_path=`
450
+ on Rails 3.x and 4.0 (Aaron Kromer, #1388)
451
+
452
+ ### 3.2.2 / 2015-06-03
453
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.1...v3.2.2)
454
+
455
+ Bug Fixes:
456
+
457
+ * Fix auto-including of generic `Helper` object for view specs sitting in the
458
+ `app/views` root (David Daniell, #1289)
459
+ * Remove pre-loading of ActionMailer in the Railtie (Aaron Kromer, #1327)
460
+ * Fix undefined method `need_auto_run=` error when using Ruby 2.1 and Rails 3.2
461
+ without the test-unit gem (Orien Madgwick, #1350)
462
+ * Fix load order issued which causes an undefined method `fixture_path` error
463
+ when loading rspec-rails after a spec has been created. (Aaron Kromer, #1372)
464
+
465
+ ### 3.2.1 / 2015-02-23
466
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.0...v3.2.1)
467
+
468
+ Bug Fixes:
469
+
470
+ * Add missing `require` to RSpec generator root fixing an issue where Rail's
471
+ autoload does not find it in some environments. (Aaron Kromer, #1305)
472
+ * `be_routable` matcher now has the correct description. (Tony Ta, #1310)
473
+ * Fix dependency to allow Rails 4.2.x patches / pre-releases (Lucas Mazza, #1318)
474
+ * Disable the `test-unit` gem's autorunner on projects running Rails < 4.1 and
475
+ Ruby < 2.2 (Aaron Kromer, #1320)
476
+
477
+ ### 3.2.0 / 2015-02-03
478
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.1.0...v3.2.0)
479
+
480
+ Enhancements:
481
+
482
+ * Include generator for `ActionMailer` mailer previews (Takashi Nakagawa, #1185)
483
+ * Configure the `ActionMailer` preview path via a Railtie (Aaron Kromer, #1236)
484
+ * Show all RSpec generators when running `rails generate` (Eliot Sykes, #1248)
485
+ * Support Ruby 2.2 with Rails 3.2 and 4.x (Aaron Kromer, #1264, #1277)
486
+ * Improve `instance_double` to support verifying dynamic column methods defined
487
+ by `ActiveRecord` (Jon Rowe, #1238)
488
+ * Mirror the use of Ruby 1.9 hash syntax for the `type` tags in the spec
489
+ generators on Rails 4. (Michael Stock, #1292)
490
+
491
+ Bug Fixes:
492
+
493
+ * Fix `rspec:feature` generator to use `RSpec` namespace preventing errors when
494
+ monkey-patching is disabled. (Rebecca Skinner, #1231)
495
+ * Fix `NoMethodError` caused by calling `RSpec.feature` when Capybara is not
496
+ available or the Capybara version is < 2.4.0. (Aaron Kromer, #1261)
497
+ * Fix `ArgumentError` when using an anonymous controller which inherits an
498
+ outer group's anonymous controller. (Yuji Nakayama, #1260)
499
+ * Fix "Test is not a class (TypeError)" error when using a custom `Test` class
500
+ in Rails 4.1 and 4.2. (Aaron Kromer, #1295)
501
+
502
+ ### 3.1.0 / 2014-09-04
503
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.2...v3.1.0)
504
+
505
+ Enhancements:
506
+
507
+ * Switch to using the `have_http_status` matcher in spec generators. (Aaron Kromer, #1086)
508
+ * Update `rails_helper` generator to allow users to opt-in to auto-loading
509
+ `spec/support` files instead of forcing it upon them. (Aaron Kromer, #1137)
510
+ * Include generator for `ActiveJob`. (Abdelkader Boudih, #1155)
511
+ * Improve support for non-ActiveRecord apps by not loading ActiveRecord related
512
+ settings in the generated `rails_helper`. (Aaron Kromer, #1150)
513
+ * Remove Ruby warnings as a suggested configuration. (Aaron Kromer, #1163)
514
+ * Improve the semantics of the controller spec for scaffolds. (Griffin Smith, #1204)
515
+ * Use `#method` syntax in all generated controller specs. (Griffin Smith, #1206)
516
+
517
+ Bug Fixes:
518
+
519
+ * Fix controller route lookup for Rails 4.2. (Tomohiro Hashidate, #1142)
520
+
521
+ ### 3.0.2 / 2014-07-21
522
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.1...v3.0.2)
523
+
524
+ Bug Fixes:
525
+
526
+ * Suppress warning in `SetupAndTeardownAdapter`. (André Arko, #1085)
527
+ * Remove dependency on Rubygems. (Andre Arko & Doc Riteze, #1099)
528
+ * Standardize controller spec template style. (Thomas Kriechbaumer, #1122)
529
+
530
+ ### 3.0.1 / 2014-06-02
531
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0...v3.0.1)
532
+
533
+ Bug Fixes:
534
+
535
+ * Fix missing require in `rails g rspec:install`. (Sam Phippen, #1058)
536
+
537
+ ### 3.0.0 / 2014-06-01
538
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.rc1...v3.0.0)
539
+
540
+ Enhancements:
541
+
542
+ * Separate RSpec configuration in generated `spec_helper` from Rails setup
543
+ and associated configuration options. Moving Rails specific settings and
544
+ options to `rails_helper`. (Aaron Kromer)
545
+
546
+ Bug Fixes:
547
+
548
+ * Fix an issue with fixture support when `ActiveRecord` isn't loaded. (Jon Rowe)
549
+
550
+ ### 3.0.0.rc1 / 2014-05-18
551
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.beta2...v3.0.0.rc1)
552
+
553
+ Breaking Changes for 3.0.0:
554
+
555
+ * Extracts the `mock_model` and `stub_model` methods to the
556
+ `rspec-activemodel-mocks` gem. (Thomas Holmes)
557
+ * Spec types are no longer inferred by location, they instead need to be
558
+ explicitly tagged. The old behaviour is enabled by
559
+ `config.infer_spec_type_from_file_location!`, which is still supplied
560
+ in the default generated `spec_helper.rb`. (Xavier Shay, Myron Marston)
561
+ * `controller` macro in controller specs no longer mutates
562
+ `:described_class` metadata. It still overrides the subject and sets
563
+ the controller, though. (Myron Marston)
564
+ * Stop depending on or requiring `rspec-collection_matchers`. Users who
565
+ want those matchers should add the gem to their Gemfile and require it
566
+ themselves. (Myron Marston)
567
+ * Removes runtime dependency on `ActiveModel`. (Rodrigo Rosenfeld Rosas)
568
+
569
+ Enhancements:
570
+
571
+ * Supports Rails 4.x reference attribute ids in generated scaffold for view
572
+ specs. (Giovanni Cappellotto)
573
+ * Add `have_http_status` matcher. (Aaron Kromer)
574
+ * Add spec type metadata to generator templates. (Aaron Kromer)
575
+
576
+ Bug Fixes:
577
+
578
+ * Fix an inconsistency in the generated scaffold specs for a controller. (Andy Waite)
579
+ * Ensure `config.before(:all, type: <type>)` hooks run before groups
580
+ of the given type, even when the type is inferred by the file
581
+ location. (Jon Rowe, Myron Marston)
582
+ * Switch to parsing params with `Rack::Utils::parse_nested_query` to match Rails.
583
+ (Tim Watson)
584
+ * Fix incorrect namespacing of anonymous controller routes. (Aaron Kromer)
585
+
586
+ ### 3.0.0.beta2 / 2014-02-17
587
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.beta1...v3.0.0.beta2)
588
+
589
+ Breaking Changes for 3.0.0:
590
+
591
+ * Removes the `--webrat` option for the request spec generator (Andy Lindeman)
592
+ * Methods from `Capybara::DSL` (e.g., `visit`) are no longer available in
593
+ controller specs. It is more appropriate to use capybara in feature specs
594
+ (`spec/features`) instead. (Andy Lindeman)
595
+ * `infer_base_class_for_anonymous_controllers` is
596
+ enabled by default. (Thomas Holmes)
597
+ * Capybara 2.2.0 or above is required for feature specs. (Andy Lindeman)
598
+
599
+ Enhancements:
600
+
601
+ * Improve `be_valid` matcher for non-ActiveModel::Errors implementations (Ben Hamill)
602
+
603
+ Bug Fixes:
604
+
605
+ * Use `__send__` rather than `send` to prevent naming collisions (Bradley Schaefer)
606
+ * Supports Rails 4.1. (Andy Lindeman)
607
+ * Routes are drawn correctly for anonymous controllers with abstract
608
+ parents. (Billy Chan)
6
609
  * Loads ActiveSupport properly to support changes in Rails 4.1. (Andy Lindeman)
7
610
  * Anonymous controllers inherit from `ActionController::Base` if `ApplicationController`
8
611
  is not present. (Jon Rowe)
612
+ * Require `rspec/collection_matchers` when `rspec/rails` is required. (Yuji Nakayama)
613
+
614
+ ### 3.0.0.beta1 / 2013-11-07
615
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0...v3.0.0.beta1)
616
+
617
+ Breaking Changes for 3.0.0:
618
+
619
+ * Extracts `autotest` and `autotest-rails` support to `rspec-autotest` gem.
620
+ (Andy Lindeman)
621
+
622
+ ### 2.99.0 / 2014-06-01
623
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.rc1...v2.99.0)
624
+
625
+ No changes. Just taking it out of pre-release.
626
+
627
+ ### 2.99.0.rc1 / 2014-05-18
628
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.beta2...v2.99.0.rc1)
629
+
630
+ Deprecations
631
+
632
+ * Deprecates `stub_model` and `mock_model` in favor of the
633
+ `rspec-activemodel-mocks` gem. (Thomas Holmes)
634
+ * Issue a deprecation to instruct users to configure
635
+ `config.infer_spec_type_from_file_location!` during the
636
+ upgrade process since spec type inference is opt-in in 3.0.
637
+ (Jon Rowe)
638
+ * Issue a deprecation when `described_class` is accessed in a controller
639
+ example group that has used the `controller { }` macro to generate an
640
+ anonymous controller class, since in 2.x, `described_class` would
641
+ return that generated class but in 3.0 it will continue returning the
642
+ class passed to `describe`. (Myron Marston)
643
+
644
+ ### 2.99.0.beta2 / 2014-02-17
645
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.beta1...v2.99.0.beta2)
646
+
647
+ Deprecations:
648
+
649
+ * Deprecates the `--webrat` option to the scaffold and request spec generator (Andy Lindeman)
650
+ * Deprecates the use of `Capybara::DSL` (e.g., `visit`) in controller specs.
651
+ It is more appropriate to use capybara in feature specs (`spec/features`)
652
+ instead. (Andy Lindeman)
653
+
654
+ Bug Fixes:
655
+
656
+ * Use `__send__` rather than `send` to prevent naming collisions (Bradley Schaefer)
657
+ * Supports Rails 4.1. (Andy Lindeman)
658
+ * Loads ActiveSupport properly to support changes in Rails 4.1. (Andy Lindeman)
659
+ * Anonymous controllers inherit from `ActionController::Base` if `ApplicationController`
660
+ is not present. (Jon Rowe)
661
+
662
+ ### 2.99.0.beta1 / 2013-11-07
663
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0...v2.99.0.beta1)
664
+
665
+ Deprecations:
666
+
667
+ * Deprecates autotest integration in favor of the `rspec-autotest` gem. (Andy
668
+ Lindeman)
669
+
670
+ Enhancements:
671
+
672
+ * Supports Rails 4.1 and Minitest 5. (Patrick Van Stee)
673
+
674
+ Bug Fixes:
675
+
676
+ * Fixes "warning: instance variable @orig\_routes not initialized" raised by
677
+ controller specs when `--warnings` are enabled. (Andy Lindeman)
678
+ * Where possible, check against the version of ActiveRecord, rather than
679
+ Rails. It is possible to use some of rspec-rails without all of Rails.
680
+ (Darryl Pogue)
681
+ * Explicitly depends on `activemodel`. This allows libraries that do not bring
682
+ in all of `rails` to use `rspec-rails`. (John Firebaugh)
9
683
 
10
684
  ### 2.14.1 / 2013-12-29
11
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.14.0...v2.14.1)
685
+ [full changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0...v2.14.1)
12
686
 
13
- Bug fixes
687
+ Bug Fixes:
14
688
 
15
689
  * Fixes "warning: instance variable @orig\_routes not initialized" raised by
16
690
  controller specs when `--warnings` are enabled. (Andy Lindeman)
@@ -23,7 +697,7 @@ Bug fixes
23
697
  * Use `__send__` rather than `send` to prevent naming collisions (Bradley Schaefer)
24
698
 
25
699
  ### 2.14.0 / 2013-07-06
26
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.14.0.rc1...v2.14.0)
700
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0.rc1...v2.14.0)
27
701
 
28
702
  Bug fixes
29
703
 
@@ -35,7 +709,7 @@ Bug fixes
35
709
  Rails 4. (Andy Lindeman)
36
710
 
37
711
  ### 2.14.0.rc1 / 2013-05-27
38
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.13.2...v2.14.0.rc1)
712
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.2...v2.14.0.rc1)
39
713
 
40
714
  Enhancements
41
715
 
@@ -48,7 +722,7 @@ Bug fixes
48
722
  spec/ directory. (Benjamin Fleischer)
49
723
 
50
724
  ### 2.13.2 / 2013-05-18
51
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.13.1...v2.13.2)
725
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.1...v2.13.2)
52
726
 
53
727
  Bug fixes
54
728
 
@@ -58,8 +732,12 @@ Bug fixes
58
732
  * Code that checks Rails version numbers is more robust in cases where Rails is
59
733
  not fully loaded. (Andy Lindeman)
60
734
 
735
+ Enhancements
736
+
737
+ * Document how the spec/support directory works. (Sam Phippen)
738
+
61
739
  ### 2.13.1 / 2013-04-27
62
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.13.0...v2.13.1)
740
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.0...v2.13.1)
63
741
 
64
742
  Bug fixes
65
743
 
@@ -73,7 +751,7 @@ Bug fixes
73
751
  * Fix spacing in the install generator template (Taiki ONO)
74
752
 
75
753
  ### 2.13.0 / 2013-02-23
76
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.12.2...v2.13.0)
754
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.2...v2.13.0)
77
755
 
78
756
  Enhancements
79
757
 
@@ -88,7 +766,7 @@ Enhancements
88
766
  (Rudolf Schmidt)
89
767
 
90
768
  ### 2.12.2 / 2013-01-12
91
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.12.1...v2.12.2)
769
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.1...v2.12.2)
92
770
 
93
771
  Bug fixes
94
772
 
@@ -100,7 +778,7 @@ Bug fixes
100
778
  Lindeman)
101
779
 
102
780
  ### 2.12.1 / 2013-01-07
103
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.12.0...v2.12.1)
781
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.0...v2.12.1)
104
782
 
105
783
  Bug fixes
106
784
 
@@ -115,7 +793,7 @@ Bug fixes
115
793
  and generation of URLs from other contexts. (Andy Lindeman)
116
794
 
117
795
  ### 2.12.0 / 2012-11-12
118
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.11.4...v2.12.0)
796
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.11.4...v2.12.0)
119
797
 
120
798
  Enhancements
121
799
 
@@ -136,7 +814,7 @@ Bug fixes
136
814
  * Failures message for `be_new_record` are more useful (Andy Lindeman)
137
815
 
138
816
  ### 2.11.4 / 2012-10-14
139
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.11.0...v2.11.4)
817
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.11.0...v2.11.4)
140
818
 
141
819
  Capybara-2.0 integration support:
142
820
 
@@ -144,13 +822,13 @@ Capybara-2.0 integration support:
144
822
  * include Capybara::DSL and Capybara::RSpecMatchers in spec/features
145
823
 
146
824
  See [https://github.com/jnicklas/capybara/pull/809](https://github.com/jnicklas/capybara/pull/809)
147
- and [http://rubydoc.info/gems/rspec-rails/file/Capybara.md](http://rubydoc.info/gems/rspec-rails/file/Capybara.md)
825
+ and [https://rubydoc.info/gems/rspec-rails/file/Capybara.md](https://rubydoc.info/gems/rspec-rails/file/Capybara.md)
148
826
  for background.
149
827
 
150
828
  2.11.1, .2, .3 were yanked due to errant documentation.
151
829
 
152
830
  ### 2.11.0 / 2012-07-07
153
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.10.1...v2.11.0)
831
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.10.1...v2.11.0)
154
832
 
155
833
  Enhancements
156
834
 
@@ -169,7 +847,7 @@ Bug fixes
169
847
  loads (Andy Lindeman)
170
848
 
171
849
  ### 2.10.1 / 2012-05-03
172
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.10.0...v2.10.1)
850
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.10.0...v2.10.1)
173
851
 
174
852
  Bug fixes
175
853
 
@@ -179,7 +857,7 @@ Bug fixes
179
857
  Rails already does this (Jack Dempsey)
180
858
 
181
859
  ### 2.10.0 / 2012-05-03
182
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.9.0...v2.10.0)
860
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.9.0...v2.10.0)
183
861
 
184
862
  Bug fixes
185
863
 
@@ -194,7 +872,7 @@ Bug fixes
194
872
  Strother)
195
873
 
196
874
  ### 2.9.0 / 2012-03-17
197
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.8.1...v2.9.0)
875
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.1...v2.9.0)
198
876
 
199
877
  Enhancements
200
878
 
@@ -209,7 +887,7 @@ Bug fixes
209
887
 
210
888
  ### 2.8.1 / 2012-01-04
211
889
 
212
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.8.0...v2.8.1)
890
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.0...v2.8.1)
213
891
 
214
892
  NOTE: there was a change in rails-3.2.0.rc2 which broke compatibility with
215
893
  stub_model in rspec-rails. This release fixes that issue, but it means that
@@ -222,7 +900,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
222
900
 
223
901
  ### 2.8.0 / 2012-01-04
224
902
 
225
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.8.0.rc2...v2.8.0)
903
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.0.rc2...v2.8.0)
226
904
 
227
905
  * Enhancements
228
906
  * Eliminate deprecation warnings in generated view specs in Rails 3.2
@@ -232,7 +910,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
232
910
 
233
911
  ### 2.8.0.rc2 / 2011-12-19
234
912
 
235
- [full changelog](http://github.com/rspec/rspec-mocks/compare/v2.8.0.rc1...v2.8.0.rc2)
913
+ [Full Changelog](https://github.com/rspec/rspec-mocks/compare/v2.8.0.rc1...v2.8.0.rc2)
236
914
 
237
915
  * Enhancements
238
916
  * Add session hash to generated controller specs (Thiago Almeida)
@@ -244,7 +922,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
244
922
 
245
923
  ### 2.8.0.rc1 / 2011-11-06
246
924
 
247
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.7.0...v2.8.0.rc1)
925
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.7.0...v2.8.0.rc1)
248
926
 
249
927
  * Enhancements
250
928
  * Removed unnecessary "config.mock_with :rspec" from spec_helper.rb (Paul
@@ -260,7 +938,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
260
938
 
261
939
  ### 2.7.0 / 2011-10-16
262
940
 
263
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.6.1...v2.7.0)
941
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.6.1...v2.7.0)
264
942
 
265
943
  * Enhancements
266
944
  * `ActiveRecord::Relation` can use the `=~` matcher (Andy Lindeman)
@@ -285,7 +963,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
285
963
 
286
964
  ### 2.6.1 / 2011-05-25
287
965
 
288
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.6.0...v2.6.1)
966
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.6.0...v2.6.1)
289
967
 
290
968
  This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
291
969
 
@@ -296,7 +974,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
296
974
 
297
975
  ### 2.6.0 / 2011-05-12
298
976
 
299
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.5.0...v2.6.0)
977
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.5.0...v2.6.0)
300
978
 
301
979
  * Enhancements
302
980
  * rails 3 shortcuts for routing specs (Joe Fiorini)
@@ -320,7 +998,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
320
998
 
321
999
  ### 2.5.0 / 2011-02-05
322
1000
 
323
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.4.1...v2.5.0)
1001
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.4.1...v2.5.0)
324
1002
 
325
1003
  * Enhancements
326
1004
  * use index_helper instead of table_name when generating specs (Reza
@@ -335,7 +1013,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
335
1013
 
336
1014
  ### 2.4.1 / 2011-01-03
337
1015
 
338
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.4.0...v2.4.1)
1016
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.4.0...v2.4.1)
339
1017
 
340
1018
  * Bug fixes
341
1019
  * fixed bug caused by including some Rails modules before RSpec's
@@ -343,12 +1021,12 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
343
1021
 
344
1022
  ### 2.4.0 / 2011-01-02
345
1023
 
346
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.3.1...v2.4.0)
1024
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.3.1...v2.4.0)
347
1025
 
348
1026
  * Enhancements
349
1027
  * include ApplicationHelper in helper object in helper specs
350
1028
  * include request spec extensions in files in spec/integration
351
- * include controller spec extensions in groups that use :type => :controller
1029
+ * include controller spec extensions in groups that use type: :controller
352
1030
  * same for :model, :view, :helper, :mailer, :request, :routing
353
1031
 
354
1032
  * Bug fixes
@@ -363,7 +1041,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
363
1041
 
364
1042
  ### 2.3.1 / 2010-12-16
365
1043
 
366
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.3.0...v2.3.1)
1044
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.3.0...v2.3.1)
367
1045
 
368
1046
  * Bug fixes
369
1047
  * respond_to? correctly handles 2 args
@@ -371,7 +1049,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
371
1049
 
372
1050
  ### 2.3.0 / 2010-12-12
373
1051
 
374
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.2.1...v2.3.0)
1052
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.2.1...v2.3.0)
375
1053
 
376
1054
  * Changes
377
1055
  * Generator no longer generates autotest/autodiscover.rb, as it is no longer
@@ -379,7 +1057,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
379
1057
 
380
1058
  ### 2.2.1 / 2010-12-01
381
1059
 
382
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.2.0...v2.2.1)
1060
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.2.0...v2.2.1)
383
1061
 
384
1062
  * Bug fixes
385
1063
  * Depend on railties, activesupport, and actionpack instead of rails (Piotr
@@ -391,7 +1069,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
391
1069
 
392
1070
  ### 2.2.0 / 2010-11-28
393
1071
 
394
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.1.0...v2.2.0)
1072
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.1.0...v2.2.0)
395
1073
 
396
1074
  * Enhancements
397
1075
  * Added stub_template in view specs
@@ -406,7 +1084,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
406
1084
 
407
1085
  ### 2.1.0 / 2010-11-07
408
1086
 
409
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.0.1...v2.1.0)
1087
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.0.1...v2.1.0)
410
1088
 
411
1089
  * Enhancements
412
1090
  * Move errors_on to ActiveModel to support other AM-compliant ORMs
@@ -417,7 +1095,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
417
1095
 
418
1096
  ### 2.0.1 / 2010-10-15
419
1097
 
420
- [full changelog](http://github.com/rspec/rspec-rails/compare/v2.0.0...v2.0.1)
1098
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.0.0...v2.0.1)
421
1099
 
422
1100
  * Enhancements
423
1101
  * Add option to not generate request spec (--skip-request-specs)
@@ -430,7 +1108,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
430
1108
 
431
1109
  ### 2.0.0 / 2010-10-10
432
1110
 
433
- [full changelog](https://github.com/rspec/rspec-rails/compare/ea6bdef...v2.0.0)
1111
+ [Full Changelog](https://github.com/rspec/rspec-rails/compare/ea6bdef...v2.0.0)
434
1112
 
435
1113
  * Enhancements
436
1114
  * ControllerExampleGroup uses controller as the implicit subject by default (Paul Rosania)