rspec-rails 4.0.0.beta2 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Capybara.md +5 -54
- data/Changelog.md +352 -86
- data/README.md +76 -65
- data/lib/generators/rspec/channel/channel_generator.rb +12 -0
- data/lib/generators/rspec/{observer/templates/observer_spec.rb → channel/templates/channel_spec.rb.erb} +1 -1
- data/lib/generators/rspec/controller/controller_generator.rb +24 -7
- data/lib/generators/rspec/controller/templates/request_spec.rb +19 -0
- data/lib/generators/rspec/controller/templates/routing_spec.rb +13 -0
- data/lib/generators/rspec/feature/feature_generator.rb +3 -3
- data/lib/generators/rspec/{generators → generator}/generator_generator.rb +3 -3
- data/lib/generators/rspec/helper/helper_generator.rb +2 -2
- data/lib/generators/rspec/install/install_generator.rb +23 -6
- data/lib/generators/rspec/install/templates/spec/rails_helper.rb +27 -21
- data/lib/generators/rspec/integration/integration_generator.rb +13 -6
- data/lib/generators/rspec/job/job_generator.rb +2 -1
- data/lib/generators/rspec/job/templates/job_spec.rb.erb +1 -1
- data/lib/generators/rspec/mailbox/mailbox_generator.rb +14 -0
- data/lib/generators/rspec/mailbox/templates/mailbox_spec.rb.erb +7 -0
- data/lib/generators/rspec/mailer/mailer_generator.rb +4 -4
- data/lib/generators/rspec/mailer/templates/mailer_spec.rb +2 -2
- data/lib/generators/rspec/mailer/templates/preview.rb +1 -1
- data/lib/generators/rspec/model/model_generator.rb +7 -7
- data/lib/generators/rspec/model/templates/fixtures.yml +1 -1
- data/lib/generators/rspec/request/request_generator.rb +10 -3
- data/lib/generators/rspec/scaffold/scaffold_generator.rb +33 -21
- data/lib/generators/rspec/scaffold/templates/api_controller_spec.rb +13 -49
- data/lib/generators/rspec/scaffold/templates/api_request_spec.rb +131 -0
- data/lib/generators/rspec/scaffold/templates/controller_spec.rb +25 -58
- data/lib/generators/rspec/scaffold/templates/edit_spec.rb +9 -9
- data/lib/generators/rspec/scaffold/templates/index_spec.rb +3 -2
- data/lib/generators/rspec/scaffold/templates/new_spec.rb +2 -6
- data/lib/generators/rspec/scaffold/templates/request_spec.rb +153 -0
- data/lib/generators/rspec/scaffold/templates/routing_spec.rb +8 -10
- data/lib/generators/rspec/scaffold/templates/show_spec.rb +2 -2
- data/lib/generators/rspec/system/system_generator.rb +14 -16
- data/lib/generators/rspec/view/view_generator.rb +4 -4
- data/lib/generators/rspec.rb +16 -5
- data/lib/rspec/rails/adapters.rb +21 -76
- data/lib/rspec/rails/configuration.rb +112 -38
- data/lib/rspec/rails/example/channel_example_group.rb +93 -0
- data/lib/rspec/rails/example/controller_example_group.rb +5 -4
- data/lib/rspec/rails/example/feature_example_group.rb +6 -26
- data/lib/rspec/rails/example/helper_example_group.rb +2 -10
- data/lib/rspec/rails/example/mailbox_example_group.rb +80 -0
- data/lib/rspec/rails/example/mailer_example_group.rb +2 -2
- data/lib/rspec/rails/example/rails_example_group.rb +9 -1
- data/lib/rspec/rails/example/request_example_group.rb +1 -4
- data/lib/rspec/rails/example/system_example_group.rb +80 -14
- data/lib/rspec/rails/example/view_example_group.rb +40 -28
- data/lib/rspec/rails/example.rb +2 -0
- data/lib/rspec/rails/extensions/active_record/proxy.rb +5 -10
- data/lib/rspec/rails/feature_check.rb +15 -22
- data/lib/rspec/rails/file_fixture_support.rb +11 -10
- data/lib/rspec/rails/fixture_file_upload_support.rb +20 -15
- data/lib/rspec/rails/fixture_support.rb +65 -34
- data/lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb +173 -0
- data/lib/rspec/rails/matchers/action_cable/have_streams.rb +58 -0
- data/lib/rspec/rails/matchers/action_cable.rb +65 -0
- data/lib/rspec/rails/matchers/action_mailbox.rb +73 -0
- data/lib/rspec/rails/matchers/active_job.rb +171 -24
- data/lib/rspec/rails/matchers/base_matcher.rb +4 -10
- data/lib/rspec/rails/matchers/have_enqueued_mail.rb +81 -27
- data/lib/rspec/rails/matchers/have_http_status.rb +12 -12
- data/lib/rspec/rails/matchers/relation_match_array.rb +1 -1
- data/lib/rspec/rails/matchers/routing_matchers.rb +11 -11
- data/lib/rspec/rails/matchers/send_email.rb +122 -0
- data/lib/rspec/rails/matchers.rb +11 -0
- data/lib/rspec/rails/tasks/rspec.rake +7 -17
- data/lib/rspec/rails/vendor/capybara.rb +10 -17
- data/lib/rspec/rails/version.rb +1 -1
- data/lib/rspec/rails/view_assigns.rb +0 -18
- data/lib/rspec/rails/view_path_builder.rb +1 -1
- data/lib/rspec/rails/view_rendering.rb +16 -14
- data/lib/rspec-rails.rb +19 -20
- data.tar.gz.sig +0 -0
- metadata +53 -40
- metadata.gz.sig +0 -0
- data/lib/generators/rspec/observer/observer_generator.rb +0 -13
- /data/lib/generators/rspec/{generators → generator}/templates/generator_spec.rb +0 -0
- /data/lib/generators/rspec/{integration → request}/templates/request_spec.rb +0 -0
data/Changelog.md
CHANGED
|
@@ -1,9 +1,245 @@
|
|
|
1
|
-
###
|
|
2
|
-
[Full Changelog](
|
|
1
|
+
### Development
|
|
2
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.1...6-1-maintenance)
|
|
3
|
+
|
|
4
|
+
### 6.1.1 / 2024-01-25
|
|
5
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.0...v6.1.1)
|
|
6
|
+
|
|
7
|
+
Bug Fixes:
|
|
8
|
+
|
|
9
|
+
* Improved deprecation message for `RSpec::Rails::Configuration.fixture_paths`
|
|
10
|
+
(Benoit Tigeot, #2720)
|
|
11
|
+
* Fix support for namespaced fixtures in Rails 7.1. (Benedikt Deicke, #2716)
|
|
12
|
+
|
|
13
|
+
### 6.1.0 / 2023-11-21
|
|
14
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.4...v6.1.0)
|
|
15
|
+
|
|
16
|
+
Enhancements:
|
|
17
|
+
|
|
18
|
+
* Support for Rails 7.1
|
|
19
|
+
* Minor tweak to generated `rails_helper.rb` to use `Rails.root.join`.
|
|
20
|
+
(@masato-bkn, Ryo Nakamura, #2640, #2678)
|
|
21
|
+
* Add `RSpec::Rails::Configuration.fixture_paths` configuration to support
|
|
22
|
+
the matching change to `ActiveRecord::TestFixtures`, previous singular
|
|
23
|
+
form is deprecated and will be removed in Rails 7.2. (Juan Gueçaimburu, #2673)
|
|
24
|
+
* Add `send_email` matcher to match emails rather than specific jobs.
|
|
25
|
+
(Andrei Kaleshka, #2670)
|
|
26
|
+
* When using `render` in view specs, `:locals` will now be merged into the
|
|
27
|
+
default implicit template, allowing `render locals: {...}` style calls.
|
|
28
|
+
(Jon Rowe, #2686)
|
|
29
|
+
* Add support for `Rails.config.action_mailer.preview_paths` on Rails 7.1/
|
|
30
|
+
(Jon Rowe, #2706)
|
|
31
|
+
|
|
32
|
+
### 6.0.4 / 2023-11-21
|
|
33
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.3...v6.0.4)
|
|
34
|
+
|
|
35
|
+
Bug Fixes:
|
|
36
|
+
|
|
37
|
+
* Fuzzy match `have_broadcasted_to` so that argument matchers can be used.
|
|
38
|
+
(Timothy Peraza, #2684)
|
|
39
|
+
* Fix fixture warning during `:context` hooks on Rails `main`. (Jon Rowe, #2685)
|
|
40
|
+
* Fix `stub_template` on Rails `main`. (Jon Rowe, #2685)
|
|
41
|
+
* Fix variable name in scaffolded view specs when namespaced. (Taketo Takashima, #2694)
|
|
42
|
+
* Prevent `take_failed_screenshot` producing an additional error through `metadata`
|
|
43
|
+
access. (Jon Rowe, #2704)
|
|
44
|
+
* Use `ActiveSupport::ExecutionContext::TestHelper` on Rails 7+. (Jon Rowe, #2711)
|
|
45
|
+
* Fix leak of templates stubbed with `stub_template` on Rails 7.1. (Jon Rowe, #2714)
|
|
46
|
+
|
|
47
|
+
### 6.0.3 / 2023-05-31
|
|
48
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.2...v6.0.3)
|
|
49
|
+
|
|
50
|
+
Bug Fixes:
|
|
51
|
+
|
|
52
|
+
* Set `ActiveStorage::FixtureSet.file_fixture_path` when including file fixture support.
|
|
53
|
+
(Jason Yates, #2671)
|
|
54
|
+
* Allow `broadcast_to` matcher to take Symbols. (@Vagab, #2680)
|
|
55
|
+
|
|
56
|
+
### 6.0.2 / 2023-05-04
|
|
57
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.1...v6.0.2)
|
|
58
|
+
|
|
59
|
+
Bug Fixes:
|
|
60
|
+
|
|
61
|
+
* Fix ActionView::PathSet when `render_views` is off for Rails 7.1.
|
|
62
|
+
(Eugene Kenny, Iliana, #2631)
|
|
63
|
+
* Support Rails 7.1's `#fixtures_paths` in example groups (removes a deprecation warning).
|
|
64
|
+
(Nicholas Simmons, #2664)
|
|
65
|
+
* Fix `have_enqueued_job` to properly detect enqueued jobs when other jobs were
|
|
66
|
+
performed inside the expectation block. (Slava Kardakov, Phil Pirozhkov, #2573)
|
|
67
|
+
|
|
68
|
+
### 6.0.1 / 2022-10-18
|
|
69
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.0...v6.0.1)
|
|
70
|
+
|
|
71
|
+
Bug Fixes:
|
|
72
|
+
|
|
73
|
+
* Prevent tagged logged support in Rails 7 calling `#name`. (Jon Rowe, #2625)
|
|
74
|
+
|
|
75
|
+
### 6.0.0 / 2022-10-10
|
|
76
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.2...v6.0.0)
|
|
77
|
+
|
|
78
|
+
Enhancements:
|
|
79
|
+
|
|
80
|
+
* Support Rails 7
|
|
81
|
+
* Template tweaks to remove instance variables from generated specs. (Takuma Ishikawa, #2599)
|
|
82
|
+
* Generators now respects default path configuration option. (@vivekmiyani, #2508)
|
|
83
|
+
|
|
84
|
+
Breaking Changes:
|
|
85
|
+
|
|
86
|
+
* Drop support for Rails below 6.1
|
|
87
|
+
* Drop support for Ruby below 2.5 (following supported versions of Rails 6.1)
|
|
88
|
+
* Change the order of `after_teardown` from `after` to `around` in system
|
|
89
|
+
specs to improve compatibility with extensions and Capybara. (Tim Diggins, #2596)
|
|
90
|
+
|
|
91
|
+
Deprecations:
|
|
92
|
+
|
|
93
|
+
* Deprecates integration spec generator (`rspec:integration`)
|
|
94
|
+
which was an alias of request spec generator (`rspec:request`)
|
|
95
|
+
(Luka Lüdicke, #2374)
|
|
96
|
+
|
|
97
|
+
### 5.1.2 / 2022-04-24
|
|
98
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.1...v5.1.2)
|
|
99
|
+
|
|
100
|
+
Bug Fixes:
|
|
101
|
+
|
|
102
|
+
* Fix controller scaffold templates parameter name. (Taketo Takashima, #2591)
|
|
103
|
+
* Include generator specs in the inferred list of specs. (Jason Karns, #2597)
|
|
104
|
+
|
|
105
|
+
### 5.1.1 / 2022-03-07
|
|
106
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.0...v5.1.1)
|
|
107
|
+
|
|
108
|
+
Bug Fixes:
|
|
109
|
+
|
|
110
|
+
* Properly handle global id serialised arguments in `have_enqueued_mail`.
|
|
111
|
+
(Jon Rowe, #2578)
|
|
112
|
+
|
|
113
|
+
### 5.1.0 / 2022-01-26
|
|
114
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.3...v5.1.0)
|
|
115
|
+
|
|
116
|
+
Enhancements:
|
|
117
|
+
|
|
118
|
+
* Make the API request scaffold template more consistent and compatible with
|
|
119
|
+
Rails 6.1. (Naoto Hamada, #2484)
|
|
120
|
+
* Change the scaffold `rails_helper.rb` template to use `require_relative`.
|
|
121
|
+
(Jon Dufresne, #2528)
|
|
122
|
+
|
|
123
|
+
### 5.0.3 / 2022-01-26
|
|
124
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.2...v5.0.3)
|
|
125
|
+
|
|
126
|
+
Bug Fixes:
|
|
127
|
+
|
|
128
|
+
* Properly name params in controller and request spec templates when
|
|
129
|
+
using the `--model-name` parameter. (@kenzo-tanaka, #2534)
|
|
130
|
+
* Fix parameter matching with mail delivery job and
|
|
131
|
+
ActionMailer::MailDeliveryJob. (Fabio Napoleoni, #2516, #2546)
|
|
132
|
+
* Fix Rails 7 `have_enqueued_mail` compatibility (Mikael Henriksson, #2537, #2546)
|
|
133
|
+
|
|
134
|
+
### 5.0.2 / 2021-08-14
|
|
135
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.1...v5.0.2)
|
|
136
|
+
|
|
137
|
+
Bug Fixes:
|
|
138
|
+
|
|
139
|
+
* Prevent generated job specs from duplicating `_job` in filenames.
|
|
140
|
+
(Nick Flückiger, #2496)
|
|
141
|
+
* Fix `ActiveRecord::TestFixture#uses_transaction` by using example description
|
|
142
|
+
to replace example name rather than example in our monkey patched
|
|
143
|
+
`run_in_transaction?` method. (Stan Lo, #2495)
|
|
144
|
+
* Prevent keyword arguments being lost when methods are invoked dynamically
|
|
145
|
+
in controller specs. (Josh Cheek, #2509, #2514)
|
|
146
|
+
|
|
147
|
+
### 5.0.1 / 2021-03-18
|
|
148
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.0...v5.0.1)
|
|
149
|
+
|
|
150
|
+
Bug Fixes:
|
|
151
|
+
|
|
152
|
+
* Limit multibyte example descriptions when used in system tests for #method_name
|
|
153
|
+
which ends up as screenshot names etc. (@y-yagi, #2405, #2487)
|
|
154
|
+
|
|
155
|
+
### 5.0.0 / 2021-03-09
|
|
156
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.1.1...v5.0.0)
|
|
157
|
+
|
|
158
|
+
Enhancements:
|
|
159
|
+
|
|
160
|
+
* Support new #file_fixture_path and new fixture test support code. (Jon Rowe, #2398)
|
|
161
|
+
* Support for Rails 6.1. (Benoit Tigeot, Jon Rowe, Phil Pirozhkov, and more #2398)
|
|
162
|
+
|
|
163
|
+
Breaking Changes:
|
|
164
|
+
|
|
165
|
+
* Drop support for Rails below 5.2.
|
|
166
|
+
|
|
167
|
+
### 4.1.1 / 2021-03-09
|
|
168
|
+
|
|
169
|
+
Bug Fixes:
|
|
170
|
+
|
|
171
|
+
* Remove generated specs when destroying a generated controller.
|
|
172
|
+
(@Naokimi, #2475)
|
|
173
|
+
|
|
174
|
+
### 4.1.0 / 2021-03-06
|
|
175
|
+
|
|
176
|
+
Enhancements:
|
|
177
|
+
|
|
178
|
+
* Issue a warning when using job matchers with `#at` mismatch on `usec` precision.
|
|
179
|
+
(Jon Rowe, #2350)
|
|
180
|
+
* Generated request specs now have a bare `_spec` suffix instead of `request_spec`.
|
|
181
|
+
(Eloy Espinaco, Luka Lüdicke, #2355, #2356, #2378)
|
|
182
|
+
* Generated scaffold now includes engine route helpers when inside a mountable engine.
|
|
183
|
+
(Andrew W. Lee, #2372)
|
|
184
|
+
* Improve request spec "controller" scafold when no action is specified.
|
|
185
|
+
(Thomas Hareau, #2399)
|
|
186
|
+
* Introduce testing snippets concept (Phil Pirozhkov, Benoit Tigeot, #2423)
|
|
187
|
+
* Prevent collisions with `let(:name)` for Rails 6.1 and `let(:method_name)` on older
|
|
188
|
+
Rails. (Benoit Tigeot, #2461)
|
|
189
|
+
|
|
190
|
+
### 4.0.2 / 2020-12-26
|
|
191
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.1...v4.0.2)
|
|
192
|
+
|
|
193
|
+
Bug Fixes:
|
|
194
|
+
|
|
195
|
+
* Indent all extra failure lines output from system specs. (Alex Robbin, #2321)
|
|
196
|
+
* Generated request spec for update now uses the correct let. (Paul Hanyzewski, #2344)
|
|
197
|
+
* Return `true`/`false` from predicate methods in config rather than raw values.
|
|
198
|
+
(Phil Pirozhkov, Jon Rowe, #2353, #2354)
|
|
199
|
+
* Remove old #fixture_path feature detection code which broke under newer Rails.
|
|
200
|
+
(Koen Punt, Jon Rowe, #2370)
|
|
201
|
+
* Fix an error when `use_active_record` is `false` (Phil Pirozhkov, #2423)
|
|
202
|
+
|
|
203
|
+
### 4.0.1 / 2020-05-16
|
|
204
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0...v4.0.1)
|
|
205
|
+
|
|
206
|
+
Bug Fixes:
|
|
207
|
+
|
|
208
|
+
* Remove warning when calling `driven_by` in system specs. (Aubin Lorieux, #2302)
|
|
209
|
+
* Fix comparison of times for `#at` in job matchers. (Jon Rowe, Markus Doits, #2304)
|
|
210
|
+
* Allow `have_enqueued_mail` to match when a sub class of `ActionMailer::DeliveryJob`
|
|
211
|
+
is set using `<Class>.delivery_job=`. (Atsushi Yoshida #2305)
|
|
212
|
+
* Restore Ruby 2.2.x compatibility. (Jon Rowe, #2332)
|
|
213
|
+
* Add `required_ruby_version` to gem spec. (Marc-André Lafortune, #2319, #2338)
|
|
214
|
+
|
|
215
|
+
### 4.0.0 / 2020-03-24
|
|
216
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.9.1...v4.0.0)
|
|
3
217
|
|
|
4
218
|
Enhancements:
|
|
5
219
|
|
|
220
|
+
* Adds support for Rails 6. (Penelope Phippen, Benoit Tigeot, Jon Rowe, #2071)
|
|
6
221
|
* Adds support for JRuby on Rails 5.2 and 6
|
|
222
|
+
* Add support for parameterised mailers (Ignatius Reza, #2125)
|
|
223
|
+
* Add ActionMailbox spec helpers and test type (James Dabbs, #2119)
|
|
224
|
+
* Add ActionCable spec helpers and test type (Vladimir Dementyev, #2113)
|
|
225
|
+
* Add support for partial args when using `have_enqueued_mail`
|
|
226
|
+
(Ignatius Reza, #2118, #2125)
|
|
227
|
+
* Add support for time arguments for `have_enqueued_job` (@alpaca-tc, #2157)
|
|
228
|
+
* Improve path parsing in view specs render options. (John Hawthorn, #2115)
|
|
229
|
+
* Add routing spec template as an option for generating controller specs.
|
|
230
|
+
(David Revelo, #2134)
|
|
231
|
+
* Add argument matcher support to `have_enqueued_*` matchers. (Phil Pirozhkov, #2206)
|
|
232
|
+
* Switch generated templates to use ruby 1.9 hash keys. (Tanbir Hasan, #2224)
|
|
233
|
+
* Add `have_been_performed`/`have_performed_job`/`perform_job` ActiveJob
|
|
234
|
+
matchers (Isaac Seymour, #1785)
|
|
235
|
+
* Default to generating request specs rather than controller specs when
|
|
236
|
+
generating a controller (Luka Lüdicke, #2222)
|
|
237
|
+
* Allow `ActiveJob` matchers `#on_queue` modifier to take symbolic queue names. (Nils Sommer, #2283)
|
|
238
|
+
* The scaffold generator now generates request specs in preference to controller specs.
|
|
239
|
+
(Luka Lüdicke, #2288)
|
|
240
|
+
* Add configuration option to disable ActiveRecord. (Jon Rowe, Phil Pirozhkov, Hermann Mayer, #2266)
|
|
241
|
+
* Set `ActionDispatch::SystemTesting::Server.silence_puma = true` when running system specs.
|
|
242
|
+
(ta1kt0me, Benoit Tigeot, #2289)
|
|
7
243
|
|
|
8
244
|
Bug Fixes:
|
|
9
245
|
|
|
@@ -13,36 +249,66 @@ Bug Fixes:
|
|
|
13
249
|
deprecated. (Pavel Rosický, #2092)
|
|
14
250
|
* `ActionView::Template#formats` has been deprecated and replaced by
|
|
15
251
|
`ActionView::Template#format`(Seb Jacobs, #2100)
|
|
252
|
+
* Replace `before_teardown` as well as `after_teardown` to ensure screenshots
|
|
253
|
+
are generated correctly. (Jon Rowe, #2164)
|
|
254
|
+
* `ActionView::FixtureResolver#hash` has been renamed to `ActionView::FixtureResolver#data`.
|
|
255
|
+
(Penelope Phippen, #2076)
|
|
256
|
+
* Prevent `driven_by(:selenium)` being called due to hook precedence.
|
|
257
|
+
(Takumi Shotoku, #2188)
|
|
258
|
+
* Prevent a `WrongScopeError` being thrown during loading fixtures on Rails
|
|
259
|
+
6.1 development version. (Edouard Chin, #2215)
|
|
260
|
+
* Fix Mocha mocking support with `should`. (Phil Pirozhkov, #2256)
|
|
261
|
+
* Restore previous conditional check for setting `default_url_options` in feature
|
|
262
|
+
specs, prevents a `NoMethodError` in some scenarios. (Eugene Kenny, #2277)
|
|
263
|
+
* Allow changing `ActiveJob::Base.queue_adapter` inside a system spec.
|
|
264
|
+
(Jonathan Rochkind, #2242)
|
|
265
|
+
* `rails generate generator` command now creates related spec file (Joel Azemar, #2217)
|
|
266
|
+
* Relax upper `capybara` version constraint to allow for Capybara 3.x (Phil Pirozhkov, #2281)
|
|
267
|
+
* Clear ActionMailer test mailbox after each example (Benoit Tigeot, #2293)
|
|
16
268
|
|
|
17
269
|
Breaking Changes:
|
|
18
270
|
|
|
19
271
|
* Drops support for Rails below 5.0
|
|
20
272
|
* Drops support for Ruby below 2.3
|
|
21
273
|
|
|
22
|
-
###
|
|
23
|
-
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.
|
|
274
|
+
### 3.9.1 / 2020-03-10
|
|
275
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.9.0...v3.9.1)
|
|
24
276
|
|
|
25
277
|
Bug Fixes:
|
|
26
278
|
|
|
27
|
-
*
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
(@nxlith, #2077)
|
|
32
|
-
* Check the arity of `errors` before attempting to use it to generate the `be_valid`
|
|
33
|
-
error message. (Kevin Kuchta, #2096)
|
|
279
|
+
* Add missing require for have_enqueued_mail matcher. (Ignatius Reza, #2117)
|
|
280
|
+
|
|
281
|
+
### 3.9.0 / 2019-10-08
|
|
282
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.3...v3.9.0)
|
|
34
283
|
|
|
35
284
|
Enhancements
|
|
36
285
|
|
|
37
286
|
* Use `__dir__` instead of `__FILE__` in generated `rails_helper.rb` where
|
|
38
287
|
supported. (OKURA Masafumi, #2048)
|
|
39
|
-
* Add `
|
|
288
|
+
* Add `have_enqueued_mail` matcher as a "super" matcher to the `ActiveJob` matchers
|
|
40
289
|
making it easier to match on `ActiveJob` delivered emails. (Joel Lubrano, #2047)
|
|
41
290
|
* Add generator for system specs on Rails 5.1 and above. (Andrzej Sliwa, #1933)
|
|
42
291
|
* Add generator for generator specs. (@ConSou, #2085)
|
|
292
|
+
* Add option to generate routes when generating controller specs. (David Revelo, #2134)
|
|
293
|
+
|
|
294
|
+
Bug Fixes:
|
|
295
|
+
|
|
296
|
+
* Make the `ActiveJob` matchers fail when multiple jobs are queued for negated
|
|
297
|
+
matches. e.g. `expect { job; job; }.to_not have_enqueued_job`.
|
|
298
|
+
(Emric Istanful, #2069)
|
|
299
|
+
|
|
300
|
+
### 3.8.3 / 2019-10-03
|
|
301
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.2...v3.8.3)
|
|
302
|
+
|
|
303
|
+
Bug Fixes:
|
|
304
|
+
|
|
305
|
+
* Namespaced fixtures now generate a `/` separated path rather than an `_`.
|
|
306
|
+
(@nxlith, #2077)
|
|
307
|
+
* Check the arity of `errors` before attempting to use it to generate the `be_valid`
|
|
308
|
+
error message. (Kevin Kuchta, #2096)
|
|
43
309
|
|
|
44
310
|
### 3.8.2 / 2019-01-13
|
|
45
|
-
[Full Changelog](
|
|
311
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.1...v3.8.2)
|
|
46
312
|
|
|
47
313
|
Bug Fixes:
|
|
48
314
|
|
|
@@ -56,7 +322,7 @@ Bug Fixes:
|
|
|
56
322
|
(Emric Istanful, #2069)
|
|
57
323
|
|
|
58
324
|
### 3.8.1 / 2018-10-23
|
|
59
|
-
[Full Changelog](
|
|
325
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.0...v3.8.1)
|
|
60
326
|
|
|
61
327
|
Bug Fixes:
|
|
62
328
|
|
|
@@ -68,7 +334,7 @@ Bug Fixes:
|
|
|
68
334
|
matchers de-serialize arguments. (@aymeric-ledorze, #2036)
|
|
69
335
|
|
|
70
336
|
### 3.8.0 / 2018-08-04
|
|
71
|
-
[Full Changelog](
|
|
337
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.2...v3.8.0)
|
|
72
338
|
|
|
73
339
|
Enhancements:
|
|
74
340
|
|
|
@@ -95,7 +361,7 @@ Bug Fixes:
|
|
|
95
361
|
|
|
96
362
|
|
|
97
363
|
### 3.7.2 / 2017-11-20
|
|
98
|
-
[Full Changelog](
|
|
364
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.1...v3.7.2)
|
|
99
365
|
|
|
100
366
|
Bug Fixes:
|
|
101
367
|
|
|
@@ -104,14 +370,14 @@ Bug Fixes:
|
|
|
104
370
|
(Matt Brictson, #1907)
|
|
105
371
|
|
|
106
372
|
### 3.7.1 / 2017-10-18
|
|
107
|
-
[Full Changelog](
|
|
373
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.0...v3.7.1)
|
|
108
374
|
|
|
109
375
|
Bug Fixes:
|
|
110
376
|
|
|
111
377
|
* Prevent system test integration loading when puma or capybara are missing (Sam Phippen, #1884)
|
|
112
378
|
|
|
113
379
|
### 3.7.0 / 2017-10-17
|
|
114
|
-
[Full Changelog](
|
|
380
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0...v3.7.0)
|
|
115
381
|
|
|
116
382
|
Bug Fixes:
|
|
117
383
|
|
|
@@ -127,7 +393,7 @@ Enhancements:
|
|
|
127
393
|
* Integrate with `ActionDispatch::SystemTestCase`. (Sam Phippen, #1813)
|
|
128
394
|
|
|
129
395
|
### 3.6.0 / 2017-05-04
|
|
130
|
-
[Full Changelog](
|
|
396
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0.beta2...v3.6.0)
|
|
131
397
|
|
|
132
398
|
Enhancements:
|
|
133
399
|
|
|
@@ -139,7 +405,7 @@ Bug Fixes:
|
|
|
139
405
|
on Rails 3.x and 4.x. (Yuji Nakayama, #1710)
|
|
140
406
|
|
|
141
407
|
### 3.6.0.beta2 / 2016-12-12
|
|
142
|
-
[Full Changelog](
|
|
408
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0.beta1...v3.6.0.beta2)
|
|
143
409
|
|
|
144
410
|
Enhancements:
|
|
145
411
|
|
|
@@ -149,7 +415,7 @@ Enhancements:
|
|
|
149
415
|
(Kevin Glowacz, #1795)
|
|
150
416
|
|
|
151
417
|
### 3.6.0.beta1 / 2016-10-09
|
|
152
|
-
[Full Changelog](
|
|
418
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.2...v3.6.0.beta1)
|
|
153
419
|
|
|
154
420
|
Enhancements:
|
|
155
421
|
|
|
@@ -159,7 +425,7 @@ Enhancements:
|
|
|
159
425
|
* Add support for generating scaffolds for api app specs. (Krzysztof Zych, #1685)
|
|
160
426
|
|
|
161
427
|
### 3.5.2 / 2016-08-26
|
|
162
|
-
[Full Changelog](
|
|
428
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.1...v3.5.2)
|
|
163
429
|
|
|
164
430
|
Bug Fixes:
|
|
165
431
|
|
|
@@ -169,7 +435,7 @@ Bug Fixes:
|
|
|
169
435
|
(Wojciech Wnętrzak, #1684)
|
|
170
436
|
|
|
171
437
|
### 3.5.1 / 2016-07-08
|
|
172
|
-
[Full Changelog](
|
|
438
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0...v3.5.1)
|
|
173
439
|
|
|
174
440
|
Bug Fixes:
|
|
175
441
|
|
|
@@ -178,12 +444,12 @@ Bug Fixes:
|
|
|
178
444
|
is defined. (#1660, Betesh).
|
|
179
445
|
|
|
180
446
|
### 3.5.0 / 2016-07-01
|
|
181
|
-
[Full Changelog](
|
|
447
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta4...v3.5.0)
|
|
182
448
|
|
|
183
449
|
**No user facing changes since beta4**
|
|
184
450
|
|
|
185
451
|
### 3.5.0.beta4 / 2016-06-05
|
|
186
|
-
[Full Changelog](
|
|
452
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta3...v3.5.0.beta4)
|
|
187
453
|
|
|
188
454
|
Enhancements:
|
|
189
455
|
|
|
@@ -196,12 +462,12 @@ Enhancements:
|
|
|
196
462
|
|
|
197
463
|
Bug fixes:
|
|
198
464
|
|
|
199
|
-
* Prevent asset helpers from taking
|
|
465
|
+
* Prevent asset helpers from taking precedence over route helpers. (Prem Sichanugrist, #1496)
|
|
200
466
|
* Prevent `NoMethodError` during failed `have_rendered` assertions on weird templates.
|
|
201
467
|
(Jon Rowe, #1623).
|
|
202
468
|
|
|
203
469
|
### 3.5.0.beta3 / 2016-04-02
|
|
204
|
-
[Full Changelog](
|
|
470
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta2...v3.5.0.beta3)
|
|
205
471
|
|
|
206
472
|
Enhancements:
|
|
207
473
|
|
|
@@ -213,7 +479,7 @@ Bug fixes:
|
|
|
213
479
|
(Jon Rowe, Benjamin Quorning, #1580)
|
|
214
480
|
|
|
215
481
|
### 3.5.0.beta2 / 2016-03-10
|
|
216
|
-
[Full Changelog](
|
|
482
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta1...v3.5.0.beta2)
|
|
217
483
|
|
|
218
484
|
Enhancements:
|
|
219
485
|
|
|
@@ -227,7 +493,7 @@ Bug fixes:
|
|
|
227
493
|
(Alwahsh, #1550)
|
|
228
494
|
|
|
229
495
|
### 3.5.0.beta1 / 2016-02-06
|
|
230
|
-
[Full Changelog](
|
|
496
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.2...v3.5.0.beta1)
|
|
231
497
|
|
|
232
498
|
Enhancements:
|
|
233
499
|
|
|
@@ -248,7 +514,7 @@ Bug fixes:
|
|
|
248
514
|
adapter. (Wojciech Wnętrzak, #1489)
|
|
249
515
|
|
|
250
516
|
### 3.4.2 / 2016-02-02
|
|
251
|
-
[Full Changelog](
|
|
517
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.1...v3.4.2)
|
|
252
518
|
|
|
253
519
|
Bug Fixes:
|
|
254
520
|
|
|
@@ -256,7 +522,7 @@ Bug Fixes:
|
|
|
256
522
|
regression from #1535. (Andrew White, #1544)
|
|
257
523
|
|
|
258
524
|
### 3.4.1 / 2016-01-25
|
|
259
|
-
[Full Changelog](
|
|
525
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.0...v3.4.1)
|
|
260
526
|
|
|
261
527
|
Bug Fixes:
|
|
262
528
|
|
|
@@ -264,7 +530,7 @@ Bug Fixes:
|
|
|
264
530
|
parameters for Rails version `4.2.5.1`. (Andrew White, Sam Phippen, #1535)
|
|
265
531
|
|
|
266
532
|
### 3.4.0 / 2015-11-11
|
|
267
|
-
[Full Changelog](
|
|
533
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.3...v3.4.0)
|
|
268
534
|
|
|
269
535
|
Enhancements:
|
|
270
536
|
|
|
@@ -285,7 +551,7 @@ Bug Fixes:
|
|
|
285
551
|
exclusion pattern for its own `lib` code. (Jam Black, #1439)
|
|
286
552
|
|
|
287
553
|
### 3.3.3 / 2015-07-15
|
|
288
|
-
[Full Changelog](
|
|
554
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.2...v3.3.3)
|
|
289
555
|
|
|
290
556
|
Bug Fixes:
|
|
291
557
|
|
|
@@ -293,7 +559,7 @@ Bug Fixes:
|
|
|
293
559
|
including symbols. (Dan Kohn, #1414)
|
|
294
560
|
|
|
295
561
|
### 3.3.2 / 2015-06-18
|
|
296
|
-
[Full Changelog](
|
|
562
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.1...v3.3.2)
|
|
297
563
|
|
|
298
564
|
Bug Fixes:
|
|
299
565
|
|
|
@@ -303,7 +569,7 @@ Bug Fixes:
|
|
|
303
569
|
abstract AR class. (Jon Rowe, #1396)
|
|
304
570
|
|
|
305
571
|
### 3.3.1 / 2015-06-14
|
|
306
|
-
[Full Changelog](
|
|
572
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.0...v3.3.1)
|
|
307
573
|
|
|
308
574
|
Bug Fixes:
|
|
309
575
|
|
|
@@ -311,7 +577,7 @@ Bug Fixes:
|
|
|
311
577
|
trigger internal errors in rails. (Myron Marston, Aaron Kromer, #1395)
|
|
312
578
|
|
|
313
579
|
### 3.3.0 / 2015-06-12
|
|
314
|
-
[Full Changelog](
|
|
580
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.3...v3.3.0)
|
|
315
581
|
|
|
316
582
|
Enhancements:
|
|
317
583
|
|
|
@@ -319,17 +585,17 @@ Enhancements:
|
|
|
319
585
|
* Improve controller and routing spec calls to `routes` by using `yield`
|
|
320
586
|
instead of `call`. (Anton Davydov, #1308)
|
|
321
587
|
* Add support for `ActiveJob` specs as standard `RSpec::Rails::RailsExampleGoup`s
|
|
322
|
-
via both
|
|
588
|
+
via both `type: :job` and inferring type from spec directory `spec/jobs`.
|
|
323
589
|
(Gabe Martin-Dempesy, #1361)
|
|
324
590
|
* Include `RSpec::Rails::FixtureSupport` into example groups using metadata
|
|
325
|
-
|
|
591
|
+
`use_fixtures: true`. (Aaron Kromer, #1372)
|
|
326
592
|
* Include `rspec:request` generator for generating request specs; this is an
|
|
327
593
|
alias of `rspec:integration` (Aaron Kromer, #1378)
|
|
328
594
|
* Update `rails_helper` generator with a default check to abort the spec run
|
|
329
595
|
when the Rails environment is production. (Aaron Kromer, #1383)
|
|
330
596
|
|
|
331
597
|
### 3.2.3 / 2015-06-06
|
|
332
|
-
[Full Changelog](
|
|
598
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.2...v3.2.3)
|
|
333
599
|
|
|
334
600
|
Bug Fixes:
|
|
335
601
|
|
|
@@ -337,7 +603,7 @@ Bug Fixes:
|
|
|
337
603
|
on Rails 3.x and 4.0 (Aaron Kromer, #1388)
|
|
338
604
|
|
|
339
605
|
### 3.2.2 / 2015-06-03
|
|
340
|
-
[Full Changelog](
|
|
606
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.1...v3.2.2)
|
|
341
607
|
|
|
342
608
|
Bug Fixes:
|
|
343
609
|
|
|
@@ -350,7 +616,7 @@ Bug Fixes:
|
|
|
350
616
|
when loading rspec-rails after a spec has been created. (Aaron Kromer, #1372)
|
|
351
617
|
|
|
352
618
|
### 3.2.1 / 2015-02-23
|
|
353
|
-
[Full Changelog](
|
|
619
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.0...v3.2.1)
|
|
354
620
|
|
|
355
621
|
Bug Fixes:
|
|
356
622
|
|
|
@@ -362,7 +628,7 @@ Bug Fixes:
|
|
|
362
628
|
Ruby < 2.2 (Aaron Kromer, #1320)
|
|
363
629
|
|
|
364
630
|
### 3.2.0 / 2015-02-03
|
|
365
|
-
[Full Changelog](
|
|
631
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.1.0...v3.2.0)
|
|
366
632
|
|
|
367
633
|
Enhancements:
|
|
368
634
|
|
|
@@ -387,7 +653,7 @@ Bug Fixes:
|
|
|
387
653
|
in Rails 4.1 and 4.2. (Aaron Kromer, #1295)
|
|
388
654
|
|
|
389
655
|
### 3.1.0 / 2014-09-04
|
|
390
|
-
[Full Changelog](
|
|
656
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.2...v3.1.0)
|
|
391
657
|
|
|
392
658
|
Enhancements:
|
|
393
659
|
|
|
@@ -406,7 +672,7 @@ Bug Fixes:
|
|
|
406
672
|
* Fix controller route lookup for Rails 4.2. (Tomohiro Hashidate, #1142)
|
|
407
673
|
|
|
408
674
|
### 3.0.2 / 2014-07-21
|
|
409
|
-
[Full Changelog](
|
|
675
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.1...v3.0.2)
|
|
410
676
|
|
|
411
677
|
Bug Fixes:
|
|
412
678
|
|
|
@@ -415,14 +681,14 @@ Bug Fixes:
|
|
|
415
681
|
* Standardize controller spec template style. (Thomas Kriechbaumer, #1122)
|
|
416
682
|
|
|
417
683
|
### 3.0.1 / 2014-06-02
|
|
418
|
-
[Full Changelog](
|
|
684
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0...v3.0.1)
|
|
419
685
|
|
|
420
686
|
Bug Fixes:
|
|
421
687
|
|
|
422
688
|
* Fix missing require in `rails g rspec:install`. (Sam Phippen, #1058)
|
|
423
689
|
|
|
424
690
|
### 3.0.0 / 2014-06-01
|
|
425
|
-
[Full Changelog](
|
|
691
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.rc1...v3.0.0)
|
|
426
692
|
|
|
427
693
|
Enhancements:
|
|
428
694
|
|
|
@@ -435,7 +701,7 @@ Bug Fixes:
|
|
|
435
701
|
* Fix an issue with fixture support when `ActiveRecord` isn't loaded. (Jon Rowe)
|
|
436
702
|
|
|
437
703
|
### 3.0.0.rc1 / 2014-05-18
|
|
438
|
-
[Full Changelog](
|
|
704
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.beta2...v3.0.0.rc1)
|
|
439
705
|
|
|
440
706
|
Breaking Changes for 3.0.0:
|
|
441
707
|
|
|
@@ -463,7 +729,7 @@ Enhancements:
|
|
|
463
729
|
Bug Fixes:
|
|
464
730
|
|
|
465
731
|
* Fix an inconsistency in the generated scaffold specs for a controller. (Andy Waite)
|
|
466
|
-
* Ensure `config.before(:all, :
|
|
732
|
+
* Ensure `config.before(:all, type: <type>)` hooks run before groups
|
|
467
733
|
of the given type, even when the type is inferred by the file
|
|
468
734
|
location. (Jon Rowe, Myron Marston)
|
|
469
735
|
* Switch to parsing params with `Rack::Utils::parse_nested_query` to match Rails.
|
|
@@ -471,7 +737,7 @@ Bug Fixes:
|
|
|
471
737
|
* Fix incorrect namespacing of anonymous controller routes. (Aaron Kromer)
|
|
472
738
|
|
|
473
739
|
### 3.0.0.beta2 / 2014-02-17
|
|
474
|
-
[Full Changelog](
|
|
740
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.beta1...v3.0.0.beta2)
|
|
475
741
|
|
|
476
742
|
Breaking Changes for 3.0.0:
|
|
477
743
|
|
|
@@ -499,7 +765,7 @@ Bug Fixes:
|
|
|
499
765
|
* Require `rspec/collection_matchers` when `rspec/rails` is required. (Yuji Nakayama)
|
|
500
766
|
|
|
501
767
|
### 3.0.0.beta1 / 2013-11-07
|
|
502
|
-
[Full Changelog](
|
|
768
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0...v3.0.0.beta1)
|
|
503
769
|
|
|
504
770
|
Breaking Changes for 3.0.0:
|
|
505
771
|
|
|
@@ -507,12 +773,12 @@ Breaking Changes for 3.0.0:
|
|
|
507
773
|
(Andy Lindeman)
|
|
508
774
|
|
|
509
775
|
### 2.99.0 / 2014-06-01
|
|
510
|
-
[Full Changelog](
|
|
776
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.rc1...v2.99.0)
|
|
511
777
|
|
|
512
778
|
No changes. Just taking it out of pre-release.
|
|
513
779
|
|
|
514
780
|
### 2.99.0.rc1 / 2014-05-18
|
|
515
|
-
[Full Changelog](
|
|
781
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.beta2...v2.99.0.rc1)
|
|
516
782
|
|
|
517
783
|
Deprecations
|
|
518
784
|
|
|
@@ -529,7 +795,7 @@ Deprecations
|
|
|
529
795
|
class passed to `describe`. (Myron Marston)
|
|
530
796
|
|
|
531
797
|
### 2.99.0.beta2 / 2014-02-17
|
|
532
|
-
[Full Changelog](
|
|
798
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.beta1...v2.99.0.beta2)
|
|
533
799
|
|
|
534
800
|
Deprecations:
|
|
535
801
|
|
|
@@ -547,7 +813,7 @@ Bug Fixes:
|
|
|
547
813
|
is not present. (Jon Rowe)
|
|
548
814
|
|
|
549
815
|
### 2.99.0.beta1 / 2013-11-07
|
|
550
|
-
[Full Changelog](
|
|
816
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0...v2.99.0.beta1)
|
|
551
817
|
|
|
552
818
|
Deprecations:
|
|
553
819
|
|
|
@@ -569,7 +835,7 @@ Bug Fixes:
|
|
|
569
835
|
in all of `rails` to use `rspec-rails`. (John Firebaugh)
|
|
570
836
|
|
|
571
837
|
### 2.14.1 / 2013-12-29
|
|
572
|
-
[full changelog](
|
|
838
|
+
[full changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0...v2.14.1)
|
|
573
839
|
|
|
574
840
|
Bug Fixes:
|
|
575
841
|
|
|
@@ -584,7 +850,7 @@ Bug Fixes:
|
|
|
584
850
|
* Use `__send__` rather than `send` to prevent naming collisions (Bradley Schaefer)
|
|
585
851
|
|
|
586
852
|
### 2.14.0 / 2013-07-06
|
|
587
|
-
[Full Changelog](
|
|
853
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0.rc1...v2.14.0)
|
|
588
854
|
|
|
589
855
|
Bug fixes
|
|
590
856
|
|
|
@@ -596,7 +862,7 @@ Bug fixes
|
|
|
596
862
|
Rails 4. (Andy Lindeman)
|
|
597
863
|
|
|
598
864
|
### 2.14.0.rc1 / 2013-05-27
|
|
599
|
-
[Full Changelog](
|
|
865
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.2...v2.14.0.rc1)
|
|
600
866
|
|
|
601
867
|
Enhancements
|
|
602
868
|
|
|
@@ -609,7 +875,7 @@ Bug fixes
|
|
|
609
875
|
spec/ directory. (Benjamin Fleischer)
|
|
610
876
|
|
|
611
877
|
### 2.13.2 / 2013-05-18
|
|
612
|
-
[Full Changelog](
|
|
878
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.1...v2.13.2)
|
|
613
879
|
|
|
614
880
|
Bug fixes
|
|
615
881
|
|
|
@@ -624,7 +890,7 @@ Enhancements
|
|
|
624
890
|
* Document how the spec/support directory works. (Sam Phippen)
|
|
625
891
|
|
|
626
892
|
### 2.13.1 / 2013-04-27
|
|
627
|
-
[Full Changelog](
|
|
893
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.0...v2.13.1)
|
|
628
894
|
|
|
629
895
|
Bug fixes
|
|
630
896
|
|
|
@@ -638,7 +904,7 @@ Bug fixes
|
|
|
638
904
|
* Fix spacing in the install generator template (Taiki ONO)
|
|
639
905
|
|
|
640
906
|
### 2.13.0 / 2013-02-23
|
|
641
|
-
[Full Changelog](
|
|
907
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.2...v2.13.0)
|
|
642
908
|
|
|
643
909
|
Enhancements
|
|
644
910
|
|
|
@@ -653,7 +919,7 @@ Enhancements
|
|
|
653
919
|
(Rudolf Schmidt)
|
|
654
920
|
|
|
655
921
|
### 2.12.2 / 2013-01-12
|
|
656
|
-
[Full Changelog](
|
|
922
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.1...v2.12.2)
|
|
657
923
|
|
|
658
924
|
Bug fixes
|
|
659
925
|
|
|
@@ -665,7 +931,7 @@ Bug fixes
|
|
|
665
931
|
Lindeman)
|
|
666
932
|
|
|
667
933
|
### 2.12.1 / 2013-01-07
|
|
668
|
-
[Full Changelog](
|
|
934
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.0...v2.12.1)
|
|
669
935
|
|
|
670
936
|
Bug fixes
|
|
671
937
|
|
|
@@ -680,7 +946,7 @@ Bug fixes
|
|
|
680
946
|
and generation of URLs from other contexts. (Andy Lindeman)
|
|
681
947
|
|
|
682
948
|
### 2.12.0 / 2012-11-12
|
|
683
|
-
[Full Changelog](
|
|
949
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.11.4...v2.12.0)
|
|
684
950
|
|
|
685
951
|
Enhancements
|
|
686
952
|
|
|
@@ -701,7 +967,7 @@ Bug fixes
|
|
|
701
967
|
* Failures message for `be_new_record` are more useful (Andy Lindeman)
|
|
702
968
|
|
|
703
969
|
### 2.11.4 / 2012-10-14
|
|
704
|
-
[Full Changelog](
|
|
970
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.11.0...v2.11.4)
|
|
705
971
|
|
|
706
972
|
Capybara-2.0 integration support:
|
|
707
973
|
|
|
@@ -709,13 +975,13 @@ Capybara-2.0 integration support:
|
|
|
709
975
|
* include Capybara::DSL and Capybara::RSpecMatchers in spec/features
|
|
710
976
|
|
|
711
977
|
See [https://github.com/jnicklas/capybara/pull/809](https://github.com/jnicklas/capybara/pull/809)
|
|
712
|
-
and [
|
|
978
|
+
and [https://rubydoc.info/gems/rspec-rails/file/Capybara.md](https://rubydoc.info/gems/rspec-rails/file/Capybara.md)
|
|
713
979
|
for background.
|
|
714
980
|
|
|
715
981
|
2.11.1, .2, .3 were yanked due to errant documentation.
|
|
716
982
|
|
|
717
983
|
### 2.11.0 / 2012-07-07
|
|
718
|
-
[Full Changelog](
|
|
984
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.10.1...v2.11.0)
|
|
719
985
|
|
|
720
986
|
Enhancements
|
|
721
987
|
|
|
@@ -734,7 +1000,7 @@ Bug fixes
|
|
|
734
1000
|
loads (Andy Lindeman)
|
|
735
1001
|
|
|
736
1002
|
### 2.10.1 / 2012-05-03
|
|
737
|
-
[Full Changelog](
|
|
1003
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.10.0...v2.10.1)
|
|
738
1004
|
|
|
739
1005
|
Bug fixes
|
|
740
1006
|
|
|
@@ -744,7 +1010,7 @@ Bug fixes
|
|
|
744
1010
|
Rails already does this (Jack Dempsey)
|
|
745
1011
|
|
|
746
1012
|
### 2.10.0 / 2012-05-03
|
|
747
|
-
[Full Changelog](
|
|
1013
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.9.0...v2.10.0)
|
|
748
1014
|
|
|
749
1015
|
Bug fixes
|
|
750
1016
|
|
|
@@ -759,7 +1025,7 @@ Bug fixes
|
|
|
759
1025
|
Strother)
|
|
760
1026
|
|
|
761
1027
|
### 2.9.0 / 2012-03-17
|
|
762
|
-
[Full Changelog](
|
|
1028
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.1...v2.9.0)
|
|
763
1029
|
|
|
764
1030
|
Enhancements
|
|
765
1031
|
|
|
@@ -774,7 +1040,7 @@ Bug fixes
|
|
|
774
1040
|
|
|
775
1041
|
### 2.8.1 / 2012-01-04
|
|
776
1042
|
|
|
777
|
-
[Full Changelog](
|
|
1043
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.0...v2.8.1)
|
|
778
1044
|
|
|
779
1045
|
NOTE: there was a change in rails-3.2.0.rc2 which broke compatibility with
|
|
780
1046
|
stub_model in rspec-rails. This release fixes that issue, but it means that
|
|
@@ -787,7 +1053,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
|
787
1053
|
|
|
788
1054
|
### 2.8.0 / 2012-01-04
|
|
789
1055
|
|
|
790
|
-
[Full Changelog](
|
|
1056
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.0.rc2...v2.8.0)
|
|
791
1057
|
|
|
792
1058
|
* Enhancements
|
|
793
1059
|
* Eliminate deprecation warnings in generated view specs in Rails 3.2
|
|
@@ -797,7 +1063,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
|
797
1063
|
|
|
798
1064
|
### 2.8.0.rc2 / 2011-12-19
|
|
799
1065
|
|
|
800
|
-
[Full Changelog](
|
|
1066
|
+
[Full Changelog](https://github.com/rspec/rspec-mocks/compare/v2.8.0.rc1...v2.8.0.rc2)
|
|
801
1067
|
|
|
802
1068
|
* Enhancements
|
|
803
1069
|
* Add session hash to generated controller specs (Thiago Almeida)
|
|
@@ -809,7 +1075,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
|
809
1075
|
|
|
810
1076
|
### 2.8.0.rc1 / 2011-11-06
|
|
811
1077
|
|
|
812
|
-
[Full Changelog](
|
|
1078
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.7.0...v2.8.0.rc1)
|
|
813
1079
|
|
|
814
1080
|
* Enhancements
|
|
815
1081
|
* Removed unnecessary "config.mock_with :rspec" from spec_helper.rb (Paul
|
|
@@ -825,7 +1091,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
|
825
1091
|
|
|
826
1092
|
### 2.7.0 / 2011-10-16
|
|
827
1093
|
|
|
828
|
-
[Full Changelog](
|
|
1094
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.6.1...v2.7.0)
|
|
829
1095
|
|
|
830
1096
|
* Enhancements
|
|
831
1097
|
* `ActiveRecord::Relation` can use the `=~` matcher (Andy Lindeman)
|
|
@@ -850,7 +1116,7 @@ you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
|
850
1116
|
|
|
851
1117
|
### 2.6.1 / 2011-05-25
|
|
852
1118
|
|
|
853
|
-
[Full Changelog](
|
|
1119
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.6.0...v2.6.1)
|
|
854
1120
|
|
|
855
1121
|
This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
856
1122
|
|
|
@@ -861,7 +1127,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
|
861
1127
|
|
|
862
1128
|
### 2.6.0 / 2011-05-12
|
|
863
1129
|
|
|
864
|
-
[Full Changelog](
|
|
1130
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.5.0...v2.6.0)
|
|
865
1131
|
|
|
866
1132
|
* Enhancements
|
|
867
1133
|
* rails 3 shortcuts for routing specs (Joe Fiorini)
|
|
@@ -885,7 +1151,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
|
885
1151
|
|
|
886
1152
|
### 2.5.0 / 2011-02-05
|
|
887
1153
|
|
|
888
|
-
[Full Changelog](
|
|
1154
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.4.1...v2.5.0)
|
|
889
1155
|
|
|
890
1156
|
* Enhancements
|
|
891
1157
|
* use index_helper instead of table_name when generating specs (Reza
|
|
@@ -900,7 +1166,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
|
900
1166
|
|
|
901
1167
|
### 2.4.1 / 2011-01-03
|
|
902
1168
|
|
|
903
|
-
[Full Changelog](
|
|
1169
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.4.0...v2.4.1)
|
|
904
1170
|
|
|
905
1171
|
* Bug fixes
|
|
906
1172
|
* fixed bug caused by including some Rails modules before RSpec's
|
|
@@ -908,12 +1174,12 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
|
908
1174
|
|
|
909
1175
|
### 2.4.0 / 2011-01-02
|
|
910
1176
|
|
|
911
|
-
[Full Changelog](
|
|
1177
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.3.1...v2.4.0)
|
|
912
1178
|
|
|
913
1179
|
* Enhancements
|
|
914
1180
|
* include ApplicationHelper in helper object in helper specs
|
|
915
1181
|
* include request spec extensions in files in spec/integration
|
|
916
|
-
* include controller spec extensions in groups that use :
|
|
1182
|
+
* include controller spec extensions in groups that use type: :controller
|
|
917
1183
|
* same for :model, :view, :helper, :mailer, :request, :routing
|
|
918
1184
|
|
|
919
1185
|
* Bug fixes
|
|
@@ -928,7 +1194,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
|
928
1194
|
|
|
929
1195
|
### 2.3.1 / 2010-12-16
|
|
930
1196
|
|
|
931
|
-
[Full Changelog](
|
|
1197
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.3.0...v2.3.1)
|
|
932
1198
|
|
|
933
1199
|
* Bug fixes
|
|
934
1200
|
* respond_to? correctly handles 2 args
|
|
@@ -936,7 +1202,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
|
936
1202
|
|
|
937
1203
|
### 2.3.0 / 2010-12-12
|
|
938
1204
|
|
|
939
|
-
[Full Changelog](
|
|
1205
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.2.1...v2.3.0)
|
|
940
1206
|
|
|
941
1207
|
* Changes
|
|
942
1208
|
* Generator no longer generates autotest/autodiscover.rb, as it is no longer
|
|
@@ -944,7 +1210,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
|
944
1210
|
|
|
945
1211
|
### 2.2.1 / 2010-12-01
|
|
946
1212
|
|
|
947
|
-
[Full Changelog](
|
|
1213
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.2.0...v2.2.1)
|
|
948
1214
|
|
|
949
1215
|
* Bug fixes
|
|
950
1216
|
* Depend on railties, activesupport, and actionpack instead of rails (Piotr
|
|
@@ -956,7 +1222,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
|
956
1222
|
|
|
957
1223
|
### 2.2.0 / 2010-11-28
|
|
958
1224
|
|
|
959
|
-
[Full Changelog](
|
|
1225
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.1.0...v2.2.0)
|
|
960
1226
|
|
|
961
1227
|
* Enhancements
|
|
962
1228
|
* Added stub_template in view specs
|
|
@@ -971,7 +1237,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
|
971
1237
|
|
|
972
1238
|
### 2.1.0 / 2010-11-07
|
|
973
1239
|
|
|
974
|
-
[Full Changelog](
|
|
1240
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.0.1...v2.1.0)
|
|
975
1241
|
|
|
976
1242
|
* Enhancements
|
|
977
1243
|
* Move errors_on to ActiveModel to support other AM-compliant ORMs
|
|
@@ -982,7 +1248,7 @@ This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
|
982
1248
|
|
|
983
1249
|
### 2.0.1 / 2010-10-15
|
|
984
1250
|
|
|
985
|
-
[Full Changelog](
|
|
1251
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.0.0...v2.0.1)
|
|
986
1252
|
|
|
987
1253
|
* Enhancements
|
|
988
1254
|
* Add option to not generate request spec (--skip-request-specs)
|