mini-quick-sys 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/mini-quick-sys.gemspec +12 -0
- data/rspec-rails-8.0.4/Capybara.md +28 -0
- data/rspec-rails-8.0.4/Changelog.md +1408 -0
- data/rspec-rails-8.0.4/LICENSE.md +25 -0
- data/rspec-rails-8.0.4/README.md +386 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/authentication/authentication_generator.rb +25 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/authentication/templates/user_spec.rb +5 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/authentication/templates/users.yml +11 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/channel/channel_generator.rb +12 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/channel/templates/channel_spec.rb.erb +7 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/controller/controller_generator.rb +51 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/controller/templates/controller_spec.rb +16 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/controller/templates/request_spec.rb +19 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/controller/templates/routing_spec.rb +13 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/controller/templates/view_spec.rb +5 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/feature/feature_generator.rb +29 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/feature/templates/feature_singular_spec.rb +5 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/feature/templates/feature_spec.rb +5 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/generator/generator_generator.rb +24 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/generator/templates/generator_spec.rb +5 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/helper/helper_generator.rb +16 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/helper/templates/helper_spec.rb +17 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/install/install_generator.rb +80 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/install/templates/spec/rails_helper.rb +91 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/job/job_generator.rb +13 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/job/templates/job_spec.rb.erb +7 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/mailbox/mailbox_generator.rb +14 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/mailbox/templates/mailbox_spec.rb.erb +7 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/mailer/mailer_generator.rb +30 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/mailer/templates/fixture +3 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/mailer/templates/mailer_spec.rb +25 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/mailer/templates/preview.rb +13 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/model/model_generator.rb +37 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/model/templates/fixtures.yml +19 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/model/templates/model_spec.rb +7 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/request/request_generator.rb +17 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/request/templates/request_spec.rb +10 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/scaffold/scaffold_generator.rb +136 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/scaffold/templates/api_controller_spec.rb +129 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/scaffold/templates/api_request_spec.rb +131 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/scaffold/templates/controller_spec.rb +145 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/scaffold/templates/edit_spec.rb +27 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/scaffold/templates/index_spec.rb +26 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/scaffold/templates/new_spec.rb +22 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/scaffold/templates/request_spec.rb +138 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/scaffold/templates/routing_spec.rb +46 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/scaffold/templates/show_spec.rb +21 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/system/system_generator.rb +24 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/system/templates/system_spec.rb +9 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/view/templates/view_spec.rb +5 -0
- data/rspec-rails-8.0.4/lib/generators/rspec/view/view_generator.rb +22 -0
- data/rspec-rails-8.0.4/lib/generators/rspec.rb +56 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/active_record.rb +25 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/adapters.rb +196 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/configuration.rb +158 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example/channel_example_group.rb +93 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example/controller_example_group.rb +217 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example/feature_example_group.rb +53 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example/helper_example_group.rb +42 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example/job_example_group.rb +23 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example/mailbox_example_group.rb +80 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example/mailer_example_group.rb +38 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example/model_example_group.rb +11 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example/rails_example_group.rb +23 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example/request_example_group.rb +27 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example/routing_example_group.rb +61 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example/system_example_group.rb +177 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example/view_example_group.rb +214 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/example.rb +13 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/extensions/active_record/proxy.rb +11 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/extensions.rb +1 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/feature_check.rb +51 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/file_fixture_support.rb +18 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/fixture_file_upload_support.rb +39 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/fixture_support.rb +58 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/action_cable/have_broadcasted_to.rb +180 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/action_cable/have_streams.rb +58 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/action_cable.rb +70 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/action_mailbox.rb +73 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/active_job.rb +534 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/base_matcher.rb +179 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/be_a_new.rb +83 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/be_new_record.rb +30 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/be_valid.rb +49 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/have_enqueued_mail.rb +259 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/have_http_status.rb +381 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/have_rendered.rb +64 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/redirect_to.rb +38 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/relation_match_array.rb +3 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/routing_matchers.rb +125 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers/send_email.rb +122 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/matchers.rb +36 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/tasks/rspec.rake +49 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/vendor/capybara.rb +32 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/version.rb +9 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/view_assigns.rb +27 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/view_path_builder.rb +29 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/view_rendering.rb +166 -0
- data/rspec-rails-8.0.4/lib/rspec/rails/view_spec_methods.rb +56 -0
- data/rspec-rails-8.0.4/lib/rspec/rails.rb +18 -0
- data/rspec-rails-8.0.4/lib/rspec-rails.rb +91 -0
- metadata +142 -0
|
@@ -0,0 +1,1408 @@
|
|
|
1
|
+
### Development
|
|
2
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v8.0.4...8-0-maintenance)
|
|
3
|
+
|
|
4
|
+
### 8.0.4 / 2026-03-10
|
|
5
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v8.0.3...v8.0.4)
|
|
6
|
+
|
|
7
|
+
Released to relax version constraint for rspec to allow 4.0.0.beta1.
|
|
8
|
+
|
|
9
|
+
### 8.0.3 / 2026-02-17
|
|
10
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v8.0.2...v8.0.3)
|
|
11
|
+
|
|
12
|
+
Bug Fixes:
|
|
13
|
+
|
|
14
|
+
* Fix insertion order of controller prefix in the view `lookup_context`. (Stephen Nelson, #2749)
|
|
15
|
+
* Ensure `rails stats` looks for specs using application root rather than working directory.
|
|
16
|
+
(Marvin Tangpos, #2879)
|
|
17
|
+
|
|
18
|
+
### 8.0.2 / 2025-08-12
|
|
19
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v8.0.1...v8.0.2)
|
|
20
|
+
|
|
21
|
+
Bug Fixes:
|
|
22
|
+
|
|
23
|
+
* Fix scaffold generator producing deprecated Rack http statuses.
|
|
24
|
+
(Taketo Takashima, rspec/rspec-rails#2860)
|
|
25
|
+
|
|
26
|
+
### 8.0.1 / 2025-06-19
|
|
27
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v8.0.0...v8.0.1)
|
|
28
|
+
|
|
29
|
+
Bug Fixes:
|
|
30
|
+
|
|
31
|
+
* Make the `have_been_performed` / `have_been_enqueued` return `false` for
|
|
32
|
+
`supports_block_expectations?` as they don't supporting block expectations.
|
|
33
|
+
(Sam Kidman, rspec/rspec-rails#2851)
|
|
34
|
+
|
|
35
|
+
### 8.0.0 / 2025-04-30
|
|
36
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v7.1.1...v8.0.0)
|
|
37
|
+
|
|
38
|
+
Enhancements:
|
|
39
|
+
|
|
40
|
+
* Add Rails 8 authentication generator support. (Jerome Dalbert, rspec/rspec-rails#2811)
|
|
41
|
+
* Improve install generator comment for `ActiveRecord::Migration.maintain_test_schema!`
|
|
42
|
+
(rspec/rspec-rails#2832)
|
|
43
|
+
* Add support for `served_by` in system specs. (Sam Giffney, rspec/rspec-rails#2841)
|
|
44
|
+
|
|
45
|
+
Breaking Changes:
|
|
46
|
+
|
|
47
|
+
* Minimum supported Rails version is 7.2.0
|
|
48
|
+
|
|
49
|
+
### 7.1.1 / 2025-02-06
|
|
50
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v7.1.0...v7.1.1)
|
|
51
|
+
|
|
52
|
+
Bug Fixes:
|
|
53
|
+
|
|
54
|
+
* Check wether rspec-mocks has been loaded before enabling signature
|
|
55
|
+
verification for `have_enqueued_job` et al (Jon Rowe, rspec/rspec-rails#2823)
|
|
56
|
+
|
|
57
|
+
### 7.1.0 / 2024-11-09
|
|
58
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v7.0.2...v7.1.0)
|
|
59
|
+
|
|
60
|
+
Enhancements:
|
|
61
|
+
|
|
62
|
+
* Improve implicit description for ActionCable matchers `have_broadcasted_to` /
|
|
63
|
+
`have_broadcast`. (Simon Fish, rspec/rspec-rails#2795)
|
|
64
|
+
* Comment out `infer_spec_type_from_file_location!` in newly generated
|
|
65
|
+
`rails_helper.rb` files. (Jon Rowe, rspec/rspec-rails#2804)
|
|
66
|
+
* Allow turning off active job / mailer argument validation.
|
|
67
|
+
(Oli Peate, rspec/rspec-rails#2808)
|
|
68
|
+
|
|
69
|
+
### 7.0.2 / 2024-11-09
|
|
70
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v7.0.1...v7.0.2)
|
|
71
|
+
|
|
72
|
+
Bug Fixes:
|
|
73
|
+
|
|
74
|
+
* Fix issue with `have_enqueued_mail` when jobs were incorrectly matched due
|
|
75
|
+
to refactoring in rspec/rspec-rails#2780. (David Runger, rspec/rspec-rails#2793)
|
|
76
|
+
|
|
77
|
+
### 7.0.1 / 2024-09-03
|
|
78
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v7.0.0...v7.0.1)
|
|
79
|
+
|
|
80
|
+
Bug Fixes:
|
|
81
|
+
|
|
82
|
+
* Remove mutation of Rails constant in favour of public api. (Petrik de Heus, rspec/rspec-rails#2789)
|
|
83
|
+
* Cleanup Rails scaffold for unsupported versions. (Matt Jankowski, rspec/rspec-rails#2790)
|
|
84
|
+
* Remove deprecated scaffold that was unintentionally included in 7.0.0
|
|
85
|
+
(Jon Rowe, rspec/rspec-rails#2791)
|
|
86
|
+
|
|
87
|
+
### 7.0.0 / 2024-09-02
|
|
88
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.5...v7.0.0)
|
|
89
|
+
|
|
90
|
+
Enhancements:
|
|
91
|
+
|
|
92
|
+
* Change default driver for system specs on Rails 7.2 to match its default.
|
|
93
|
+
(Steve Polito, rspec/rspec-rails#2746)
|
|
94
|
+
* Verify ActiveJob arguments by comparing to the method signature. (Oli Peate, rspec/rspec-rails#2745)
|
|
95
|
+
* Add suggestion to rails_helper.rb to skip when not in test mode. (Glauco Custódio, rspec/rspec-rails#2751)
|
|
96
|
+
* Add `at_priority` qualifier to `have_enqueued_job` set of matchers. (mbajur, rspec/rspec-rails#2759)
|
|
97
|
+
* Add spec directories to `rails stats` on Rails main / 8.0.0. (Petrik de Heus, rspec/rspec-rails#2781)
|
|
98
|
+
|
|
99
|
+
### 6.1.5 / 2024-09-02
|
|
100
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.4...v6.1.5)
|
|
101
|
+
|
|
102
|
+
Bug Fixes:
|
|
103
|
+
|
|
104
|
+
* Restore old order of requiring support files. (Franz Liedke, rspec/rspec-rails#2785)
|
|
105
|
+
* Prevent running `rake spec:statsetup` on Rails main / 8.0.0. (Petrik de Heus, rspec/rspec-rails#2781)
|
|
106
|
+
|
|
107
|
+
### 6.1.4 / 2024-08-15
|
|
108
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.3...v6.1.4)
|
|
109
|
+
|
|
110
|
+
Bug Fixes:
|
|
111
|
+
|
|
112
|
+
* Prevent `have_http_status` matcher raising an error when encountering a raw `Rack::MockResponse`.
|
|
113
|
+
(Christophe Bliard, rspec/rspec-rails#2771)
|
|
114
|
+
* Move Rails version conditional from index scaffold generated file to template. (Matt Jankowski, rspec/rspec-rails#2777)
|
|
115
|
+
|
|
116
|
+
### 6.1.3 / 2024-06-19
|
|
117
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.2...v6.1.3)
|
|
118
|
+
|
|
119
|
+
Bug Fixes:
|
|
120
|
+
|
|
121
|
+
* Reset `ActiveSupport::CurrentAttributes` between examples. (Javier Julio, rspec/rspec-rails#2752)
|
|
122
|
+
* Fix a broken link in generated mailer previews. (Chiara Núñez, rspec/rspec-rails#2764)
|
|
123
|
+
* Fix `have_status_code` behaviour with deprecated status names by delegating
|
|
124
|
+
to `Rack::Utils.status_code/1` to set the expected status code. (Darren Boyd, rspec/rspec-rails#2765)
|
|
125
|
+
|
|
126
|
+
### 6.1.2 / 2024-03-19
|
|
127
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.1...v6.1.2)
|
|
128
|
+
|
|
129
|
+
Bug Fixes:
|
|
130
|
+
|
|
131
|
+
* Fix generated mailer paths to match Rails convention. (Patrício dos Santos, rspec/rspec-rails#2735)
|
|
132
|
+
* Fix class in template for generator specs. (Nicolas Buduroi, rspec/rspec-rails#2744)
|
|
133
|
+
|
|
134
|
+
### 6.1.1 / 2024-01-25
|
|
135
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.1.0...v6.1.1)
|
|
136
|
+
|
|
137
|
+
Bug Fixes:
|
|
138
|
+
|
|
139
|
+
* Improved deprecation message for `RSpec::Rails::Configuration.fixture_paths`
|
|
140
|
+
(Benoit Tigeot, rspec/rspec-rails#2720)
|
|
141
|
+
* Fix support for namespaced fixtures in Rails 7.1. (Benedikt Deicke, rspec/rspec-rails#2716)
|
|
142
|
+
|
|
143
|
+
### 6.1.0 / 2023-11-21
|
|
144
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.4...v6.1.0)
|
|
145
|
+
|
|
146
|
+
Enhancements:
|
|
147
|
+
|
|
148
|
+
* Support for Rails 7.1
|
|
149
|
+
* Minor tweak to generated `rails_helper.rb` to use `Rails.root.join`.
|
|
150
|
+
(@masato-bkn, Ryo Nakamura, rspec/rspec-rails#2640, rspec/rspec-rails#2678)
|
|
151
|
+
* Add `RSpec::Rails::Configuration.fixture_paths` configuration to support
|
|
152
|
+
the matching change to `ActiveRecord::TestFixtures`, previous singular
|
|
153
|
+
form is deprecated and will be removed in Rails 7.2. (Juan Gueçaimburu, rspec/rspec-rails#2673)
|
|
154
|
+
* Add `send_email` matcher to match emails rather than specific jobs.
|
|
155
|
+
(Andrei Kaleshka, rspec/rspec-rails#2670)
|
|
156
|
+
* When using `render` in view specs, `:locals` will now be merged into the
|
|
157
|
+
default implicit template, allowing `render locals: {...}` style calls.
|
|
158
|
+
(Jon Rowe, rspec/rspec-rails#2686)
|
|
159
|
+
* Add support for `Rails.config.action_mailer.preview_paths` on Rails 7.1/
|
|
160
|
+
(Jon Rowe, rspec/rspec-rails#2706)
|
|
161
|
+
|
|
162
|
+
### 6.0.4 / 2023-11-21
|
|
163
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.3...v6.0.4)
|
|
164
|
+
|
|
165
|
+
Bug Fixes:
|
|
166
|
+
|
|
167
|
+
* Fuzzy match `have_broadcasted_to` so that argument matchers can be used.
|
|
168
|
+
(Timothy Peraza, rspec/rspec-rails#2684)
|
|
169
|
+
* Fix fixture warning during `:context` hooks on Rails `main`. (Jon Rowe, rspec/rspec-rails#2685)
|
|
170
|
+
* Fix `stub_template` on Rails `main`. (Jon Rowe, rspec/rspec-rails#2685)
|
|
171
|
+
* Fix variable name in scaffolded view specs when namespaced. (Taketo Takashima, rspec/rspec-rails#2694)
|
|
172
|
+
* Prevent `take_failed_screenshot` producing an additional error through `metadata`
|
|
173
|
+
access. (Jon Rowe, rspec/rspec-rails#2704)
|
|
174
|
+
* Use `ActiveSupport::ExecutionContext::TestHelper` on Rails 7+. (Jon Rowe, rspec/rspec-rails#2711)
|
|
175
|
+
* Fix leak of templates stubbed with `stub_template` on Rails 7.1. (Jon Rowe, rspec/rspec-rails#2714)
|
|
176
|
+
|
|
177
|
+
### 6.0.3 / 2023-05-31
|
|
178
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.2...v6.0.3)
|
|
179
|
+
|
|
180
|
+
Bug Fixes:
|
|
181
|
+
|
|
182
|
+
* Set `ActiveStorage::FixtureSet.file_fixture_path` when including file fixture support.
|
|
183
|
+
(Jason Yates, rspec/rspec-rails#2671)
|
|
184
|
+
* Allow `broadcast_to` matcher to take Symbols. (@Vagab, rspec/rspec-rails#2680)
|
|
185
|
+
|
|
186
|
+
### 6.0.2 / 2023-05-04
|
|
187
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.1...v6.0.2)
|
|
188
|
+
|
|
189
|
+
Bug Fixes:
|
|
190
|
+
|
|
191
|
+
* Fix ActionView::PathSet when `render_views` is off for Rails 7.1.
|
|
192
|
+
(Eugene Kenny, Iliana, rspec/rspec-rails#2631)
|
|
193
|
+
* Support Rails 7.1's `#fixtures_paths` in example groups (removes a deprecation warning).
|
|
194
|
+
(Nicholas Simmons, rspec/rspec-rails#2664)
|
|
195
|
+
* Fix `have_enqueued_job` to properly detect enqueued jobs when other jobs were
|
|
196
|
+
performed inside the expectation block. (Slava Kardakov, Phil Pirozhkov, rspec/rspec-rails#2573)
|
|
197
|
+
|
|
198
|
+
### 6.0.1 / 2022-10-18
|
|
199
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.0...v6.0.1)
|
|
200
|
+
|
|
201
|
+
Bug Fixes:
|
|
202
|
+
|
|
203
|
+
* Prevent tagged logged support in Rails 7 calling `#name`. (Jon Rowe, rspec/rspec-rails#2625)
|
|
204
|
+
|
|
205
|
+
### 6.0.0 / 2022-10-10
|
|
206
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.2...v6.0.0)
|
|
207
|
+
|
|
208
|
+
Enhancements:
|
|
209
|
+
|
|
210
|
+
* Support Rails 7
|
|
211
|
+
* Template tweaks to remove instance variables from generated specs. (Takuma Ishikawa, rspec/rspec-rails#2599)
|
|
212
|
+
* Generators now respects default path configuration option. (@vivekmiyani, rspec/rspec-rails#2508)
|
|
213
|
+
|
|
214
|
+
Breaking Changes:
|
|
215
|
+
|
|
216
|
+
* Drop support for Rails below 6.1
|
|
217
|
+
* Drop support for Ruby below 2.5 (following supported versions of Rails 6.1)
|
|
218
|
+
* Change the order of `after_teardown` from `after` to `around` in system
|
|
219
|
+
specs to improve compatibility with extensions and Capybara. (Tim Diggins, rspec/rspec-rails#2596)
|
|
220
|
+
|
|
221
|
+
Deprecations:
|
|
222
|
+
|
|
223
|
+
* Deprecates integration spec generator (`rspec:integration`)
|
|
224
|
+
which was an alias of request spec generator (`rspec:request`)
|
|
225
|
+
(Luka Lüdicke, rspec/rspec-rails#2374)
|
|
226
|
+
|
|
227
|
+
### 5.1.2 / 2022-04-24
|
|
228
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.1...v5.1.2)
|
|
229
|
+
|
|
230
|
+
Bug Fixes:
|
|
231
|
+
|
|
232
|
+
* Fix controller scaffold templates parameter name. (Taketo Takashima, rspec/rspec-rails#2591)
|
|
233
|
+
* Include generator specs in the inferred list of specs. (Jason Karns, rspec/rspec-rails#2597)
|
|
234
|
+
|
|
235
|
+
### 5.1.1 / 2022-03-07
|
|
236
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.0...v5.1.1)
|
|
237
|
+
|
|
238
|
+
Bug Fixes:
|
|
239
|
+
|
|
240
|
+
* Properly handle global id serialised arguments in `have_enqueued_mail`.
|
|
241
|
+
(Jon Rowe, rspec/rspec-rails#2578)
|
|
242
|
+
|
|
243
|
+
### 5.1.0 / 2022-01-26
|
|
244
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.3...v5.1.0)
|
|
245
|
+
|
|
246
|
+
Enhancements:
|
|
247
|
+
|
|
248
|
+
* Make the API request scaffold template more consistent and compatible with
|
|
249
|
+
Rails 6.1. (Naoto Hamada, rspec/rspec-rails#2484)
|
|
250
|
+
* Change the scaffold `rails_helper.rb` template to use `require_relative`.
|
|
251
|
+
(Jon Dufresne, rspec/rspec-rails#2528)
|
|
252
|
+
|
|
253
|
+
### 5.0.3 / 2022-01-26
|
|
254
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.2...v5.0.3)
|
|
255
|
+
|
|
256
|
+
Bug Fixes:
|
|
257
|
+
|
|
258
|
+
* Properly name params in controller and request spec templates when
|
|
259
|
+
using the `--model-name` parameter. (@kenzo-tanaka, rspec/rspec-rails#2534)
|
|
260
|
+
* Fix parameter matching with mail delivery job and
|
|
261
|
+
ActionMailer::MailDeliveryJob. (Fabio Napoleoni, rspec/rspec-rails#2516, rspec/rspec-rails#2546)
|
|
262
|
+
* Fix Rails 7 `have_enqueued_mail` compatibility (Mikael Henriksson, rspec/rspec-rails#2537, rspec/rspec-rails#2546)
|
|
263
|
+
|
|
264
|
+
### 5.0.2 / 2021-08-14
|
|
265
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.1...v5.0.2)
|
|
266
|
+
|
|
267
|
+
Bug Fixes:
|
|
268
|
+
|
|
269
|
+
* Prevent generated job specs from duplicating `_job` in filenames.
|
|
270
|
+
(Nick Flückiger, rspec/rspec-rails#2496)
|
|
271
|
+
* Fix `ActiveRecord::TestFixture#uses_transaction` by using example description
|
|
272
|
+
to replace example name rather than example in our monkey patched
|
|
273
|
+
`run_in_transaction?` method. (Stan Lo, rspec/rspec-rails#2495)
|
|
274
|
+
* Prevent keyword arguments being lost when methods are invoked dynamically
|
|
275
|
+
in controller specs. (Josh Cheek, rspec/rspec-rails#2509, rspec/rspec-rails#2514)
|
|
276
|
+
|
|
277
|
+
### 5.0.1 / 2021-03-18
|
|
278
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.0...v5.0.1)
|
|
279
|
+
|
|
280
|
+
Bug Fixes:
|
|
281
|
+
|
|
282
|
+
* Limit multibyte example descriptions when used in system tests for #method_name
|
|
283
|
+
which ends up as screenshot names etc. (@y-yagi, rspec/rspec-rails#2405, rspec/rspec-rails#2487)
|
|
284
|
+
|
|
285
|
+
### 5.0.0 / 2021-03-09
|
|
286
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.1.1...v5.0.0)
|
|
287
|
+
|
|
288
|
+
Enhancements:
|
|
289
|
+
|
|
290
|
+
* Support new #file_fixture_path and new fixture test support code. (Jon Rowe, rspec/rspec-rails#2398)
|
|
291
|
+
* Support for Rails 6.1. (Benoit Tigeot, Jon Rowe, Phil Pirozhkov, and more rspec/rspec-rails#2398)
|
|
292
|
+
|
|
293
|
+
Breaking Changes:
|
|
294
|
+
|
|
295
|
+
* Drop support for Rails below 5.2.
|
|
296
|
+
|
|
297
|
+
### 4.1.1 / 2021-03-09
|
|
298
|
+
|
|
299
|
+
Bug Fixes:
|
|
300
|
+
|
|
301
|
+
* Remove generated specs when destroying a generated controller.
|
|
302
|
+
(@Naokimi, rspec/rspec-rails#2475)
|
|
303
|
+
|
|
304
|
+
### 4.1.0 / 2021-03-06
|
|
305
|
+
|
|
306
|
+
Enhancements:
|
|
307
|
+
|
|
308
|
+
* Issue a warning when using job matchers with `#at` mismatch on `usec` precision.
|
|
309
|
+
(Jon Rowe, rspec/rspec-rails#2350)
|
|
310
|
+
* Generated request specs now have a bare `_spec` suffix instead of `request_spec`.
|
|
311
|
+
(Eloy Espinaco, Luka Lüdicke, rspec/rspec-rails#2355, rspec/rspec-rails#2356, rspec/rspec-rails#2378)
|
|
312
|
+
* Generated scaffold now includes engine route helpers when inside a mountable engine.
|
|
313
|
+
(Andrew W. Lee, rspec/rspec-rails#2372)
|
|
314
|
+
* Improve request spec "controller" scaffold when no action is specified.
|
|
315
|
+
(Thomas Hareau, rspec/rspec-rails#2399)
|
|
316
|
+
* Introduce testing snippets concept (Phil Pirozhkov, Benoit Tigeot, rspec/rspec-rails#2423)
|
|
317
|
+
* Prevent collisions with `let(:name)` for Rails 6.1 and `let(:method_name)` on older
|
|
318
|
+
Rails. (Benoit Tigeot, rspec/rspec-rails#2461)
|
|
319
|
+
|
|
320
|
+
### 4.0.2 / 2020-12-26
|
|
321
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.1...v4.0.2)
|
|
322
|
+
|
|
323
|
+
Bug Fixes:
|
|
324
|
+
|
|
325
|
+
* Indent all extra failure lines output from system specs. (Alex Robbin, rspec/rspec-rails#2321)
|
|
326
|
+
* Generated request spec for update now uses the correct let. (Paul Hanyzewski, rspec/rspec-rails#2344)
|
|
327
|
+
* Return `true`/`false` from predicate methods in config rather than raw values.
|
|
328
|
+
(Phil Pirozhkov, Jon Rowe, rspec/rspec-rails#2353, rspec/rspec-rails#2354)
|
|
329
|
+
* Remove old #fixture_path feature detection code which broke under newer Rails.
|
|
330
|
+
(Koen Punt, Jon Rowe, rspec/rspec-rails#2370)
|
|
331
|
+
* Fix an error when `use_active_record` is `false` (Phil Pirozhkov, rspec/rspec-rails#2423)
|
|
332
|
+
|
|
333
|
+
### 4.0.1 / 2020-05-16
|
|
334
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v4.0.0...v4.0.1)
|
|
335
|
+
|
|
336
|
+
Bug Fixes:
|
|
337
|
+
|
|
338
|
+
* Remove warning when calling `driven_by` in system specs. (Aubin Lorieux, rspec/rspec-rails#2302)
|
|
339
|
+
* Fix comparison of times for `#at` in job matchers. (Jon Rowe, Markus Doits, rspec/rspec-rails#2304)
|
|
340
|
+
* Allow `have_enqueued_mail` to match when a sub class of `ActionMailer::DeliveryJob`
|
|
341
|
+
is set using `<Class>.delivery_job=`. (Atsushi Yoshida rspec/rspec-rails#2305)
|
|
342
|
+
* Restore Ruby 2.2.x compatibility. (Jon Rowe, rspec/rspec-rails#2332)
|
|
343
|
+
* Add `required_ruby_version` to gem spec. (Marc-André Lafortune, rspec/rspec-rails#2319, rspec/rspec-rails#2338)
|
|
344
|
+
|
|
345
|
+
### 4.0.0 / 2020-03-24
|
|
346
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.9.1...v4.0.0)
|
|
347
|
+
|
|
348
|
+
Enhancements:
|
|
349
|
+
|
|
350
|
+
* Adds support for Rails 6. (Penelope Phippen, Benoit Tigeot, Jon Rowe, rspec/rspec-rails#2071)
|
|
351
|
+
* Adds support for JRuby on Rails 5.2 and 6
|
|
352
|
+
* Add support for parameterised mailers (Ignatius Reza, rspec/rspec-rails#2125)
|
|
353
|
+
* Add ActionMailbox spec helpers and test type (James Dabbs, rspec/rspec-rails#2119)
|
|
354
|
+
* Add ActionCable spec helpers and test type (Vladimir Dementyev, rspec/rspec-rails#2113)
|
|
355
|
+
* Add support for partial args when using `have_enqueued_mail`
|
|
356
|
+
(Ignatius Reza, rspec/rspec-rails#2118, rspec/rspec-rails#2125)
|
|
357
|
+
* Add support for time arguments for `have_enqueued_job` (@alpaca-tc, rspec/rspec-rails#2157)
|
|
358
|
+
* Improve path parsing in view specs render options. (John Hawthorn, rspec/rspec-rails#2115)
|
|
359
|
+
* Add routing spec template as an option for generating controller specs.
|
|
360
|
+
(David Revelo, rspec/rspec-rails#2134)
|
|
361
|
+
* Add argument matcher support to `have_enqueued_*` matchers. (Phil Pirozhkov, rspec/rspec-rails#2206)
|
|
362
|
+
* Switch generated templates to use ruby 1.9 hash keys. (Tanbir Hasan, rspec/rspec-rails#2224)
|
|
363
|
+
* Add `have_been_performed`/`have_performed_job`/`perform_job` ActiveJob
|
|
364
|
+
matchers (Isaac Seymour, rspec/rspec-rails#1785)
|
|
365
|
+
* Default to generating request specs rather than controller specs when
|
|
366
|
+
generating a controller (Luka Lüdicke, rspec/rspec-rails#2222)
|
|
367
|
+
* Allow `ActiveJob` matchers `#on_queue` modifier to take symbolic queue names. (Nils Sommer, rspec/rspec-rails#2283)
|
|
368
|
+
* The scaffold generator now generates request specs in preference to controller specs.
|
|
369
|
+
(Luka Lüdicke, rspec/rspec-rails#2288)
|
|
370
|
+
* Add configuration option to disable ActiveRecord. (Jon Rowe, Phil Pirozhkov, Hermann Mayer, rspec/rspec-rails#2266)
|
|
371
|
+
* Set `ActionDispatch::SystemTesting::Server.silence_puma = true` when running system specs.
|
|
372
|
+
(ta1kt0me, Benoit Tigeot, rspec/rspec-rails#2289)
|
|
373
|
+
|
|
374
|
+
Bug Fixes:
|
|
375
|
+
|
|
376
|
+
* `EmptyTemplateHandler.call` now needs to support an additional argument in
|
|
377
|
+
Rails 6. (Pavel Rosický, rspec/rspec-rails#2089)
|
|
378
|
+
* Suppress warning from `SQLite3Adapter.represent_boolean_as_integer` which is
|
|
379
|
+
deprecated. (Pavel Rosický, rspec/rspec-rails#2092)
|
|
380
|
+
* `ActionView::Template#formats` has been deprecated and replaced by
|
|
381
|
+
`ActionView::Template#format`(Seb Jacobs, rspec/rspec-rails#2100)
|
|
382
|
+
* Replace `before_teardown` as well as `after_teardown` to ensure screenshots
|
|
383
|
+
are generated correctly. (Jon Rowe, rspec/rspec-rails#2164)
|
|
384
|
+
* `ActionView::FixtureResolver#hash` has been renamed to `ActionView::FixtureResolver#data`.
|
|
385
|
+
(Penelope Phippen, rspec/rspec-rails#2076)
|
|
386
|
+
* Prevent `driven_by(:selenium)` being called due to hook precedence.
|
|
387
|
+
(Takumi Shotoku, rspec/rspec-rails#2188)
|
|
388
|
+
* Prevent a `WrongScopeError` being thrown during loading fixtures on Rails
|
|
389
|
+
6.1 development version. (Edouard Chin, rspec/rspec-rails#2215)
|
|
390
|
+
* Fix Mocha mocking support with `should`. (Phil Pirozhkov, rspec/rspec-rails#2256)
|
|
391
|
+
* Restore previous conditional check for setting `default_url_options` in feature
|
|
392
|
+
specs, prevents a `NoMethodError` in some scenarios. (Eugene Kenny, rspec/rspec-rails#2277)
|
|
393
|
+
* Allow changing `ActiveJob::Base.queue_adapter` inside a system spec.
|
|
394
|
+
(Jonathan Rochkind, rspec/rspec-rails#2242)
|
|
395
|
+
* `rails generate generator` command now creates related spec file (Joel Azemar, rspec/rspec-rails#2217)
|
|
396
|
+
* Relax upper `capybara` version constraint to allow for Capybara 3.x (Phil Pirozhkov, rspec/rspec-rails#2281)
|
|
397
|
+
* Clear ActionMailer test mailbox after each example (Benoit Tigeot, rspec/rspec-rails#2293)
|
|
398
|
+
|
|
399
|
+
Breaking Changes:
|
|
400
|
+
|
|
401
|
+
* Drops support for Rails below 5.0
|
|
402
|
+
* Drops support for Ruby below 2.3
|
|
403
|
+
|
|
404
|
+
### 3.9.1 / 2020-03-10
|
|
405
|
+
[Full Changelog](http://github.com/rspec/rspec-rails/compare/v3.9.0...v3.9.1)
|
|
406
|
+
|
|
407
|
+
Bug Fixes:
|
|
408
|
+
|
|
409
|
+
* Add missing require for have_enqueued_mail matcher. (Ignatius Reza, rspec/rspec-rails#2117)
|
|
410
|
+
|
|
411
|
+
### 3.9.0 / 2019-10-08
|
|
412
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.3...v3.9.0)
|
|
413
|
+
|
|
414
|
+
Enhancements
|
|
415
|
+
|
|
416
|
+
* Use `__dir__` instead of `__FILE__` in generated `rails_helper.rb` where
|
|
417
|
+
supported. (OKURA Masafumi, rspec/rspec-rails#2048)
|
|
418
|
+
* Add `have_enqueued_mail` matcher as a "super" matcher to the `ActiveJob` matchers
|
|
419
|
+
making it easier to match on `ActiveJob` delivered emails. (Joel Lubrano, rspec/rspec-rails#2047)
|
|
420
|
+
* Add generator for system specs on Rails 5.1 and above. (Andrzej Sliwa, rspec/rspec-rails#1933)
|
|
421
|
+
* Add generator for generator specs. (@ConSou, rspec/rspec-rails#2085)
|
|
422
|
+
* Add option to generate routes when generating controller specs. (David Revelo, rspec/rspec-rails#2134)
|
|
423
|
+
|
|
424
|
+
Bug Fixes:
|
|
425
|
+
|
|
426
|
+
* Make the `ActiveJob` matchers fail when multiple jobs are queued for negated
|
|
427
|
+
matches. e.g. `expect { job; job; }.to_not have_enqueued_job`.
|
|
428
|
+
(Emric Istanful, rspec/rspec-rails#2069)
|
|
429
|
+
|
|
430
|
+
### 3.8.3 / 2019-10-03
|
|
431
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.2...v3.8.3)
|
|
432
|
+
|
|
433
|
+
Bug Fixes:
|
|
434
|
+
|
|
435
|
+
* Namespaced fixtures now generate a `/` separated path rather than an `_`.
|
|
436
|
+
(@nxlith, rspec/rspec-rails#2077)
|
|
437
|
+
* Check the arity of `errors` before attempting to use it to generate the `be_valid`
|
|
438
|
+
error message. (Kevin Kuchta, rspec/rspec-rails#2096)
|
|
439
|
+
|
|
440
|
+
### 3.8.2 / 2019-01-13
|
|
441
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.1...v3.8.2)
|
|
442
|
+
|
|
443
|
+
Bug Fixes:
|
|
444
|
+
|
|
445
|
+
* Fix issue with generator for preview specs where `Mailer` would be duplicated
|
|
446
|
+
in the name. (Kohei Sugi, rspec/rspec-rails#2037)
|
|
447
|
+
* Fix the request spec generator to handle namespaced files. (Kohei Sugi, rspec/rspec-rails#2057)
|
|
448
|
+
* Further truncate system test filenames to handle cases when extra words are
|
|
449
|
+
prepended. (Takumi Kaji, rspec/rspec-rails#2058)
|
|
450
|
+
* Backport: Make the `ActiveJob` matchers fail when multiple jobs are queued
|
|
451
|
+
for negated matches. e.g. `expect { job; job; }.to_not have_enqueued_job
|
|
452
|
+
(Emric Istanful, rspec/rspec-rails#2069)
|
|
453
|
+
|
|
454
|
+
### 3.8.1 / 2018-10-23
|
|
455
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.8.0...v3.8.1)
|
|
456
|
+
|
|
457
|
+
Bug Fixes:
|
|
458
|
+
|
|
459
|
+
* Fix `NoMethodError: undefined method 'strip'` when using a `Pathname` object
|
|
460
|
+
as the fixture file path. (Aaron Kromer, rspec/rspec-rails#2026)
|
|
461
|
+
* When generating feature specs, do not duplicate namespace in the path name.
|
|
462
|
+
(Laura Paakkinen, rspec/rspec-rails#2034)
|
|
463
|
+
* Prevent `ActiveJob::DeserializationError` from being issued when `ActiveJob`
|
|
464
|
+
matchers de-serialize arguments. (@aymeric-ledorze, rspec/rspec-rails#2036)
|
|
465
|
+
|
|
466
|
+
### 3.8.0 / 2018-08-04
|
|
467
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.2...v3.8.0)
|
|
468
|
+
|
|
469
|
+
Enhancements:
|
|
470
|
+
|
|
471
|
+
* Improved message when migrations are pending in the default `rails_helper.rb`
|
|
472
|
+
(Koichi ITO, rspec/rspec-rails#1924)
|
|
473
|
+
* `have_http_status` matcher now supports Rails 5.2 style response symbols
|
|
474
|
+
(Douglas Lovell, rspec/rspec-rails#1951)
|
|
475
|
+
* Change generated Rails helper to match Rails standards for Rails.root
|
|
476
|
+
(Alessandro Rodi, rspec/rspec-rails#1960)
|
|
477
|
+
* At support for asserting enqueued jobs have no wait period attached.
|
|
478
|
+
(Brad Charna, rspec/rspec-rails#1977)
|
|
479
|
+
* Cache instances of `ActionView::Template` used in `stub_template` resulting
|
|
480
|
+
in increased performance due to less allocations and setup. (Simon Coffey, rspec/rspec-rails#1979)
|
|
481
|
+
* Rails scaffold generator now respects longer namespaces (e.g. api/v1/\<thing\>).
|
|
482
|
+
(Laura Paakkinen, rspec/rspec-rails#1958)
|
|
483
|
+
|
|
484
|
+
Bug Fixes:
|
|
485
|
+
|
|
486
|
+
* Escape quotation characters when producing method names for system spec
|
|
487
|
+
screenshots. (Shane Cavanaugh, rspec/rspec-rails#1955)
|
|
488
|
+
* Use relative path for resolving fixtures when `fixture_path` is not set.
|
|
489
|
+
(Laurent Cobos, rspec/rspec-rails#1943)
|
|
490
|
+
* Allow custom template resolvers in view specs. (@ahorek, rspec/rspec-rails#1941)
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
### 3.7.2 / 2017-11-20
|
|
494
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.1...v3.7.2)
|
|
495
|
+
|
|
496
|
+
Bug Fixes:
|
|
497
|
+
|
|
498
|
+
* Delay loading system test integration until used. (Jon Rowe, rspec/rspec-rails#1903)
|
|
499
|
+
* Ensure specs using the aggregate failures feature take screenshots on failure.
|
|
500
|
+
(Matt Brictson, rspec/rspec-rails#1907)
|
|
501
|
+
|
|
502
|
+
### 3.7.1 / 2017-10-18
|
|
503
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.7.0...v3.7.1)
|
|
504
|
+
|
|
505
|
+
Bug Fixes:
|
|
506
|
+
|
|
507
|
+
* Prevent system test integration loading when puma or capybara are missing (Sam Phippen, rspec/rspec-rails#1884)
|
|
508
|
+
|
|
509
|
+
### 3.7.0 / 2017-10-17
|
|
510
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0...v3.7.0)
|
|
511
|
+
|
|
512
|
+
Bug Fixes:
|
|
513
|
+
|
|
514
|
+
* Prevent "template not rendered" log message from erroring in threaded
|
|
515
|
+
environments. (Samuel Cochran, rspec/rspec-rails#1831)
|
|
516
|
+
* Correctly generate job name in error message. (Wojciech Wnętrzak, rspec/rspec-rails#1814)
|
|
517
|
+
|
|
518
|
+
Enhancements:
|
|
519
|
+
|
|
520
|
+
* Allow `be_a_new(...).with(...)` matcher to accept matchers for
|
|
521
|
+
attribute values. (Britni Alexander, rspec/rspec-rails#1811)
|
|
522
|
+
* Only configure RSpec Mocks if it is fully loaded. (James Adam, rspec/rspec-rails#1856)
|
|
523
|
+
* Integrate with `ActionDispatch::SystemTestCase`. (Sam Phippen, rspec/rspec-rails#1813)
|
|
524
|
+
|
|
525
|
+
### 3.6.0 / 2017-05-04
|
|
526
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0.beta2...v3.6.0)
|
|
527
|
+
|
|
528
|
+
Enhancements:
|
|
529
|
+
|
|
530
|
+
* Add compatibility for Rails 5.1. (Sam Phippen, Yuichiro Kaneko, rspec/rspec-rails#1790)
|
|
531
|
+
|
|
532
|
+
Bug Fixes:
|
|
533
|
+
|
|
534
|
+
* Fix scaffold generator so that it does not generate broken controller specs
|
|
535
|
+
on Rails 3.x and 4.x. (Yuji Nakayama, rspec/rspec-rails#1710)
|
|
536
|
+
|
|
537
|
+
### 3.6.0.beta2 / 2016-12-12
|
|
538
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.6.0.beta1...v3.6.0.beta2)
|
|
539
|
+
|
|
540
|
+
Enhancements:
|
|
541
|
+
|
|
542
|
+
* Improve failure output of ActiveJob matchers by listing queued jobs.
|
|
543
|
+
(Wojciech Wnętrzak, rspec/rspec-rails#1722)
|
|
544
|
+
* Load `spec_helper.rb` earlier in `rails_helper.rb` by default.
|
|
545
|
+
(Kevin Glowacz, rspec/rspec-rails#1795)
|
|
546
|
+
|
|
547
|
+
### 3.6.0.beta1 / 2016-10-09
|
|
548
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.2...v3.6.0.beta1)
|
|
549
|
+
|
|
550
|
+
Enhancements:
|
|
551
|
+
|
|
552
|
+
* Add support for `rake notes` in Rails `>= 5.1`. (John Meehan, rspec/rspec-rails#1661)
|
|
553
|
+
* Remove `assigns` and `assert_template` from scaffold spec generators (Josh
|
|
554
|
+
Justice, rspec/rspec-rails#1689)
|
|
555
|
+
* Add support for generating scaffolds for api app specs. (Krzysztof Zych, rspec/rspec-rails#1685)
|
|
556
|
+
|
|
557
|
+
### 3.5.2 / 2016-08-26
|
|
558
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.1...v3.5.2)
|
|
559
|
+
|
|
560
|
+
Bug Fixes:
|
|
561
|
+
|
|
562
|
+
* Stop unnecessarily loading `rspec/core` from `rspec/rails` to avoid
|
|
563
|
+
IRB context warning. (Myron Marston, rspec/rspec-rails#1678)
|
|
564
|
+
* Deserialize arguments within ActiveJob matchers correctly.
|
|
565
|
+
(Wojciech Wnętrzak, rspec/rspec-rails#1684)
|
|
566
|
+
|
|
567
|
+
### 3.5.1 / 2016-07-08
|
|
568
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0...v3.5.1)
|
|
569
|
+
|
|
570
|
+
Bug Fixes:
|
|
571
|
+
|
|
572
|
+
* Only attempt to load `ActionDispatch::IntegrationTest::Behavior` on Rails 5,
|
|
573
|
+
and above; Prevents possible `TypeError` when an existing `Behaviour` class
|
|
574
|
+
is defined. (#1660, Betesh).
|
|
575
|
+
|
|
576
|
+
### 3.5.0 / 2016-07-01
|
|
577
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta4...v3.5.0)
|
|
578
|
+
|
|
579
|
+
**No user facing changes since beta4**
|
|
580
|
+
|
|
581
|
+
### 3.5.0.beta4 / 2016-06-05
|
|
582
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta3...v3.5.0.beta4)
|
|
583
|
+
|
|
584
|
+
Enhancements:
|
|
585
|
+
|
|
586
|
+
* Add support for block when using `with` on `have_enqueued_job`. (John Schroeder, rspec/rspec-rails#1578)
|
|
587
|
+
* Add support for `file_fixture(...)`. (Wojciech Wnętrzak, rspec/rspec-rails#1587)
|
|
588
|
+
* Add support for `setup` and `teardown` with blocks (Miklós Fazekas, rspec/rspec-rails#1598)
|
|
589
|
+
* Add `enqueue_job ` alias for `have_enqueued_job`, support `once`/`twice`/
|
|
590
|
+
`thrice`, add `have_been_enqueued` matcher to support use without blocks.
|
|
591
|
+
(Sergey Alexandrovich, rspec/rspec-rails#1613)
|
|
592
|
+
|
|
593
|
+
Bug fixes:
|
|
594
|
+
|
|
595
|
+
* Prevent asset helpers from taking precedence over route helpers. (Prem Sichanugrist, rspec/rspec-rails#1496)
|
|
596
|
+
* Prevent `NoMethodError` during failed `have_rendered` assertions on weird templates.
|
|
597
|
+
(Jon Rowe, rspec/rspec-rails#1623).
|
|
598
|
+
|
|
599
|
+
### 3.5.0.beta3 / 2016-04-02
|
|
600
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta2...v3.5.0.beta3)
|
|
601
|
+
|
|
602
|
+
Enhancements:
|
|
603
|
+
|
|
604
|
+
* Add support for Rails 5 Beta 3 (Sam Phippen, Benjamin Quorning, Koen Punt, rspec/rspec-rails#1589, rspec/rspec-rails#1573)
|
|
605
|
+
|
|
606
|
+
Bug fixes:
|
|
607
|
+
|
|
608
|
+
* Support custom resolvers when preventing views from rendering.
|
|
609
|
+
(Jon Rowe, Benjamin Quorning, rspec/rspec-rails#1580)
|
|
610
|
+
|
|
611
|
+
### 3.5.0.beta2 / 2016-03-10
|
|
612
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.5.0.beta1...v3.5.0.beta2)
|
|
613
|
+
|
|
614
|
+
Enhancements:
|
|
615
|
+
|
|
616
|
+
* Include `ActionDispatch::IntegrationTest::Behavior` in request spec
|
|
617
|
+
example groups when on Rails 5, allowing integration test helpers
|
|
618
|
+
to be used in request specs. (Scott Bronson, rspec/rspec-rails#1560)
|
|
619
|
+
|
|
620
|
+
Bug fixes:
|
|
621
|
+
|
|
622
|
+
* Make it possible to use floats in auto generated (scaffold) tests.
|
|
623
|
+
(Alwahsh, rspec/rspec-rails#1550)
|
|
624
|
+
|
|
625
|
+
### 3.5.0.beta1 / 2016-02-06
|
|
626
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.2...v3.5.0.beta1)
|
|
627
|
+
|
|
628
|
+
Enhancements:
|
|
629
|
+
|
|
630
|
+
* Add a `--singularize` option for the feature spec generator (Felicity McCabe,
|
|
631
|
+
rspec/rspec-rails#1503)
|
|
632
|
+
* Prevent leaking TestUnit methods in Rails 4+ (Fernando Seror Garcia, rspec/rspec-rails#1512)
|
|
633
|
+
* Add support for Rails 5 (Sam Phippen, rspec/rspec-rails#1492)
|
|
634
|
+
|
|
635
|
+
Bug fixes:
|
|
636
|
+
|
|
637
|
+
* Make it possible to write nested specs within helper specs on classes that are
|
|
638
|
+
internal to helper classes. (Sam Phippen, Peter Swan, rspec/rspec-rails#1499).
|
|
639
|
+
* Warn if a fixture method is called from a `before(:context)` block, instead of
|
|
640
|
+
crashing with a `undefined method for nil:NilClass`. (Sam Phippen, rspec/rspec-rails#1501)
|
|
641
|
+
* Expose path to view specs (Ryan Clark, Sarah Mei, Sam Phippen, rspec/rspec-rails#1402)
|
|
642
|
+
* Prevent installing Rails 3.2.22.1 on Ruby 1.8.7. (Jon Rowe, rspec/rspec-rails#1540)
|
|
643
|
+
* Raise a clear error when `have_enqueued_job` is used with non-test
|
|
644
|
+
adapter. (Wojciech Wnętrzak, rspec/rspec-rails#1489)
|
|
645
|
+
|
|
646
|
+
### 3.4.2 / 2016-02-02
|
|
647
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.1...v3.4.2)
|
|
648
|
+
|
|
649
|
+
Bug Fixes:
|
|
650
|
+
|
|
651
|
+
* Cache template resolvers during path lookup to prevent performance
|
|
652
|
+
regression from rspec/rspec-rails#1535. (Andrew White, rspec/rspec-rails#1544)
|
|
653
|
+
|
|
654
|
+
### 3.4.1 / 2016-01-25
|
|
655
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.4.0...v3.4.1)
|
|
656
|
+
|
|
657
|
+
Bug Fixes:
|
|
658
|
+
|
|
659
|
+
* Fix no method error when rendering templates with explicit `:file`
|
|
660
|
+
parameters for Rails version `4.2.5.1`. (Andrew White, Sam Phippen, rspec/rspec-rails#1535)
|
|
661
|
+
|
|
662
|
+
### 3.4.0 / 2015-11-11
|
|
663
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.3...v3.4.0)
|
|
664
|
+
|
|
665
|
+
Enhancements:
|
|
666
|
+
|
|
667
|
+
* Improved the failure message for `have_rendered` matcher on a redirect
|
|
668
|
+
response. (Alex Egan, rspec/rspec-rails#1440)
|
|
669
|
+
* Add configuration option to filter out Rails gems from backtraces.
|
|
670
|
+
(Bradley Schaefer, rspec/rspec-rails#1458)
|
|
671
|
+
* Enable resolver cache for view specs for a large speed improvement
|
|
672
|
+
(Chris Zetter, rspec/rspec-rails#1452)
|
|
673
|
+
* Add `have_enqueued_job` matcher for checking if a block has queued jobs.
|
|
674
|
+
(Wojciech Wnętrzak, rspec/rspec-rails#1464)
|
|
675
|
+
|
|
676
|
+
Bug Fixes:
|
|
677
|
+
|
|
678
|
+
* Fix another load order issued which causes an undefined method `fixture_path` error
|
|
679
|
+
when loading rspec-rails after a spec has been created. (Nikki Murray, rspec/rspec-rails#1430)
|
|
680
|
+
* Removed incorrect surrounding whitespace in the rspec-rails backtrace
|
|
681
|
+
exclusion pattern for its own `lib` code. (Jam Black, rspec/rspec-rails#1439)
|
|
682
|
+
|
|
683
|
+
### 3.3.3 / 2015-07-15
|
|
684
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.2...v3.3.3)
|
|
685
|
+
|
|
686
|
+
Bug Fixes:
|
|
687
|
+
|
|
688
|
+
* Fix issue with generators caused by `Rails.configuration.hidden_namespaces`
|
|
689
|
+
including symbols. (Dan Kohn, rspec/rspec-rails#1414)
|
|
690
|
+
|
|
691
|
+
### 3.3.2 / 2015-06-18
|
|
692
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.1...v3.3.2)
|
|
693
|
+
|
|
694
|
+
Bug Fixes:
|
|
695
|
+
|
|
696
|
+
* Fix regression that caused stubbing abstract ActiveRecord model
|
|
697
|
+
classes to trigger internal errors in rails due the the verifying
|
|
698
|
+
double lifecycle wrongly calling `define_attribute_methods` on the
|
|
699
|
+
abstract AR class. (Jon Rowe, rspec/rspec-rails#1396)
|
|
700
|
+
|
|
701
|
+
### 3.3.1 / 2015-06-14
|
|
702
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.3.0...v3.3.1)
|
|
703
|
+
|
|
704
|
+
Bug Fixes:
|
|
705
|
+
|
|
706
|
+
* Fix regression that caused stubbing ActiveRecord model classes to
|
|
707
|
+
trigger internal errors in rails. (Myron Marston, Aaron Kromer, rspec/rspec-rails#1395)
|
|
708
|
+
|
|
709
|
+
### 3.3.0 / 2015-06-12
|
|
710
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.3...v3.3.0)
|
|
711
|
+
|
|
712
|
+
Enhancements:
|
|
713
|
+
|
|
714
|
+
* Add support for PATCH to route specs created via scaffold. (Igor Zubkov, rspec/rspec-rails#1336)
|
|
715
|
+
* Improve controller and routing spec calls to `routes` by using `yield`
|
|
716
|
+
instead of `call`. (Anton Davydov, rspec/rspec-rails#1308)
|
|
717
|
+
* Add support for `ActiveJob` specs as standard `RSpec::Rails::RailsExampleGroup`s
|
|
718
|
+
via both `type: :job` and inferring type from spec directory `spec/jobs`.
|
|
719
|
+
(Gabe Martin-Dempesy, rspec/rspec-rails#1361)
|
|
720
|
+
* Include `RSpec::Rails::FixtureSupport` into example groups using metadata
|
|
721
|
+
`use_fixtures: true`. (Aaron Kromer, rspec/rspec-rails#1372)
|
|
722
|
+
* Include `rspec:request` generator for generating request specs; this is an
|
|
723
|
+
alias of `rspec:integration` (Aaron Kromer, rspec/rspec-rails#1378)
|
|
724
|
+
* Update `rails_helper` generator with a default check to abort the spec run
|
|
725
|
+
when the Rails environment is production. (Aaron Kromer, rspec/rspec-rails#1383)
|
|
726
|
+
|
|
727
|
+
### 3.2.3 / 2015-06-06
|
|
728
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.2...v3.2.3)
|
|
729
|
+
|
|
730
|
+
Bug Fixes:
|
|
731
|
+
|
|
732
|
+
* Fix regression with the railtie resulting in undefined method `preview_path=`
|
|
733
|
+
on Rails 3.x and 4.0 (Aaron Kromer, rspec/rspec-rails#1388)
|
|
734
|
+
|
|
735
|
+
### 3.2.2 / 2015-06-03
|
|
736
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.1...v3.2.2)
|
|
737
|
+
|
|
738
|
+
Bug Fixes:
|
|
739
|
+
|
|
740
|
+
* Fix auto-including of generic `Helper` object for view specs sitting in the
|
|
741
|
+
`app/views` root (David Daniell, rspec/rspec-rails#1289)
|
|
742
|
+
* Remove pre-loading of ActionMailer in the Railtie (Aaron Kromer, rspec/rspec-rails#1327)
|
|
743
|
+
* Fix undefined method `need_auto_run=` error when using Ruby 2.1 and Rails 3.2
|
|
744
|
+
without the test-unit gem (Orien Madgwick, rspec/rspec-rails#1350)
|
|
745
|
+
* Fix load order issued which causes an undefined method `fixture_path` error
|
|
746
|
+
when loading rspec-rails after a spec has been created. (Aaron Kromer, rspec/rspec-rails#1372)
|
|
747
|
+
|
|
748
|
+
### 3.2.1 / 2015-02-23
|
|
749
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.2.0...v3.2.1)
|
|
750
|
+
|
|
751
|
+
Bug Fixes:
|
|
752
|
+
|
|
753
|
+
* Add missing `require` to RSpec generator root fixing an issue where Rail's
|
|
754
|
+
autoload does not find it in some environments. (Aaron Kromer, rspec/rspec-rails#1305)
|
|
755
|
+
* `be_routable` matcher now has the correct description. (Tony Ta, rspec/rspec-rails#1310)
|
|
756
|
+
* Fix dependency to allow Rails 4.2.x patches / pre-releases (Lucas Mazza, rspec/rspec-rails#1318)
|
|
757
|
+
* Disable the `test-unit` gem's autorunner on projects running Rails < 4.1 and
|
|
758
|
+
Ruby < 2.2 (Aaron Kromer, rspec/rspec-rails#1320)
|
|
759
|
+
|
|
760
|
+
### 3.2.0 / 2015-02-03
|
|
761
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.1.0...v3.2.0)
|
|
762
|
+
|
|
763
|
+
Enhancements:
|
|
764
|
+
|
|
765
|
+
* Include generator for `ActionMailer` mailer previews (Takashi Nakagawa, rspec/rspec-rails#1185)
|
|
766
|
+
* Configure the `ActionMailer` preview path via a Railtie (Aaron Kromer, rspec/rspec-rails#1236)
|
|
767
|
+
* Show all RSpec generators when running `rails generate` (Eliot Sykes, rspec/rspec-rails#1248)
|
|
768
|
+
* Support Ruby 2.2 with Rails 3.2 and 4.x (Aaron Kromer, rspec/rspec-rails#1264, rspec/rspec-rails#1277)
|
|
769
|
+
* Improve `instance_double` to support verifying dynamic column methods defined
|
|
770
|
+
by `ActiveRecord` (Jon Rowe, rspec/rspec-rails#1238)
|
|
771
|
+
* Mirror the use of Ruby 1.9 hash syntax for the `type` tags in the spec
|
|
772
|
+
generators on Rails 4. (Michael Stock, rspec/rspec-rails#1292)
|
|
773
|
+
|
|
774
|
+
Bug Fixes:
|
|
775
|
+
|
|
776
|
+
* Fix `rspec:feature` generator to use `RSpec` namespace preventing errors when
|
|
777
|
+
monkey-patching is disabled. (Rebecca Skinner, rspec/rspec-rails#1231)
|
|
778
|
+
* Fix `NoMethodError` caused by calling `RSpec.feature` when Capybara is not
|
|
779
|
+
available or the Capybara version is < 2.4.0. (Aaron Kromer, rspec/rspec-rails#1261)
|
|
780
|
+
* Fix `ArgumentError` when using an anonymous controller which inherits an
|
|
781
|
+
outer group's anonymous controller. (Yuji Nakayama, rspec/rspec-rails#1260)
|
|
782
|
+
* Fix "Test is not a class (TypeError)" error when using a custom `Test` class
|
|
783
|
+
in Rails 4.1 and 4.2. (Aaron Kromer, rspec/rspec-rails#1295)
|
|
784
|
+
|
|
785
|
+
### 3.1.0 / 2014-09-04
|
|
786
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.2...v3.1.0)
|
|
787
|
+
|
|
788
|
+
Enhancements:
|
|
789
|
+
|
|
790
|
+
* Switch to using the `have_http_status` matcher in spec generators. (Aaron Kromer, rspec/rspec-rails#1086)
|
|
791
|
+
* Update `rails_helper` generator to allow users to opt-in to auto-loading
|
|
792
|
+
`spec/support` files instead of forcing it upon them. (Aaron Kromer, rspec/rspec-rails#1137)
|
|
793
|
+
* Include generator for `ActiveJob`. (Abdelkader Boudih, rspec/rspec-rails#1155)
|
|
794
|
+
* Improve support for non-ActiveRecord apps by not loading ActiveRecord related
|
|
795
|
+
settings in the generated `rails_helper`. (Aaron Kromer, rspec/rspec-rails#1150)
|
|
796
|
+
* Remove Ruby warnings as a suggested configuration. (Aaron Kromer, rspec/rspec-rails#1163)
|
|
797
|
+
* Improve the semantics of the controller spec for scaffolds. (Griffin Smith, rspec/rspec-rails#1204)
|
|
798
|
+
* Use `#method` syntax in all generated controller specs. (Griffin Smith, rspec/rspec-rails#1206)
|
|
799
|
+
|
|
800
|
+
Bug Fixes:
|
|
801
|
+
|
|
802
|
+
* Fix controller route lookup for Rails 4.2. (Tomohiro Hashidate, rspec/rspec-rails#1142)
|
|
803
|
+
|
|
804
|
+
### 3.0.2 / 2014-07-21
|
|
805
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.1...v3.0.2)
|
|
806
|
+
|
|
807
|
+
Bug Fixes:
|
|
808
|
+
|
|
809
|
+
* Suppress warning in `SetupAndTeardownAdapter`. (André Arko, rspec/rspec-rails#1085)
|
|
810
|
+
* Remove dependency on Rubygems. (Andre Arko & Doc Riteze, rspec/rspec-rails#1099)
|
|
811
|
+
* Standardize controller spec template style. (Thomas Kriechbaumer, rspec/rspec-rails#1122)
|
|
812
|
+
|
|
813
|
+
### 3.0.1 / 2014-06-02
|
|
814
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0...v3.0.1)
|
|
815
|
+
|
|
816
|
+
Bug Fixes:
|
|
817
|
+
|
|
818
|
+
* Fix missing require in `rails g rspec:install`. (Sam Phippen, rspec/rspec-rails#1058)
|
|
819
|
+
|
|
820
|
+
### 3.0.0 / 2014-06-01
|
|
821
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.rc1...v3.0.0)
|
|
822
|
+
|
|
823
|
+
Enhancements:
|
|
824
|
+
|
|
825
|
+
* Separate RSpec configuration in generated `spec_helper` from Rails setup
|
|
826
|
+
and associated configuration options. Moving Rails specific settings and
|
|
827
|
+
options to `rails_helper`. (Aaron Kromer)
|
|
828
|
+
|
|
829
|
+
Bug Fixes:
|
|
830
|
+
|
|
831
|
+
* Fix an issue with fixture support when `ActiveRecord` isn't loaded. (Jon Rowe)
|
|
832
|
+
|
|
833
|
+
### 3.0.0.rc1 / 2014-05-18
|
|
834
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.beta2...v3.0.0.rc1)
|
|
835
|
+
|
|
836
|
+
Breaking Changes for 3.0.0:
|
|
837
|
+
|
|
838
|
+
* Extracts the `mock_model` and `stub_model` methods to the
|
|
839
|
+
`rspec-activemodel-mocks` gem. (Thomas Holmes)
|
|
840
|
+
* Spec types are no longer inferred by location, they instead need to be
|
|
841
|
+
explicitly tagged. The old behaviour is enabled by
|
|
842
|
+
`config.infer_spec_type_from_file_location!`, which is still supplied
|
|
843
|
+
in the default generated `spec_helper.rb`. (Xavier Shay, Myron Marston)
|
|
844
|
+
* `controller` macro in controller specs no longer mutates
|
|
845
|
+
`:described_class` metadata. It still overrides the subject and sets
|
|
846
|
+
the controller, though. (Myron Marston)
|
|
847
|
+
* Stop depending on or requiring `rspec-collection_matchers`. Users who
|
|
848
|
+
want those matchers should add the gem to their Gemfile and require it
|
|
849
|
+
themselves. (Myron Marston)
|
|
850
|
+
* Removes runtime dependency on `ActiveModel`. (Rodrigo Rosenfeld Rosas)
|
|
851
|
+
|
|
852
|
+
Enhancements:
|
|
853
|
+
|
|
854
|
+
* Supports Rails 4.x reference attribute ids in generated scaffold for view
|
|
855
|
+
specs. (Giovanni Cappellotto)
|
|
856
|
+
* Add `have_http_status` matcher. (Aaron Kromer)
|
|
857
|
+
* Add spec type metadata to generator templates. (Aaron Kromer)
|
|
858
|
+
|
|
859
|
+
Bug Fixes:
|
|
860
|
+
|
|
861
|
+
* Fix an inconsistency in the generated scaffold specs for a controller. (Andy Waite)
|
|
862
|
+
* Ensure `config.before(:all, type: <type>)` hooks run before groups
|
|
863
|
+
of the given type, even when the type is inferred by the file
|
|
864
|
+
location. (Jon Rowe, Myron Marston)
|
|
865
|
+
* Switch to parsing params with `Rack::Utils::parse_nested_query` to match Rails.
|
|
866
|
+
(Tim Watson)
|
|
867
|
+
* Fix incorrect namespacing of anonymous controller routes. (Aaron Kromer)
|
|
868
|
+
|
|
869
|
+
### 3.0.0.beta2 / 2014-02-17
|
|
870
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v3.0.0.beta1...v3.0.0.beta2)
|
|
871
|
+
|
|
872
|
+
Breaking Changes for 3.0.0:
|
|
873
|
+
|
|
874
|
+
* Removes the `--webrat` option for the request spec generator (Andy Lindeman)
|
|
875
|
+
* Methods from `Capybara::DSL` (e.g., `visit`) are no longer available in
|
|
876
|
+
controller specs. It is more appropriate to use capybara in feature specs
|
|
877
|
+
(`spec/features`) instead. (Andy Lindeman)
|
|
878
|
+
* `infer_base_class_for_anonymous_controllers` is
|
|
879
|
+
enabled by default. (Thomas Holmes)
|
|
880
|
+
* Capybara 2.2.0 or above is required for feature specs. (Andy Lindeman)
|
|
881
|
+
|
|
882
|
+
Enhancements:
|
|
883
|
+
|
|
884
|
+
* Improve `be_valid` matcher for non-ActiveModel::Errors implementations (Ben Hamill)
|
|
885
|
+
|
|
886
|
+
Bug Fixes:
|
|
887
|
+
|
|
888
|
+
* Use `__send__` rather than `send` to prevent naming collisions (Bradley Schaefer)
|
|
889
|
+
* Supports Rails 4.1. (Andy Lindeman)
|
|
890
|
+
* Routes are drawn correctly for anonymous controllers with abstract
|
|
891
|
+
parents. (Billy Chan)
|
|
892
|
+
* Loads ActiveSupport properly to support changes in Rails 4.1. (Andy Lindeman)
|
|
893
|
+
* Anonymous controllers inherit from `ActionController::Base` if `ApplicationController`
|
|
894
|
+
is not present. (Jon Rowe)
|
|
895
|
+
* Require `rspec/collection_matchers` when `rspec/rails` is required. (Yuji Nakayama)
|
|
896
|
+
|
|
897
|
+
### 3.0.0.beta1 / 2013-11-07
|
|
898
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0...v3.0.0.beta1)
|
|
899
|
+
|
|
900
|
+
Breaking Changes for 3.0.0:
|
|
901
|
+
|
|
902
|
+
* Extracts `autotest` and `autotest-rails` support to `rspec-autotest` gem.
|
|
903
|
+
(Andy Lindeman)
|
|
904
|
+
|
|
905
|
+
### 2.99.0 / 2014-06-01
|
|
906
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.rc1...v2.99.0)
|
|
907
|
+
|
|
908
|
+
No changes. Just taking it out of pre-release.
|
|
909
|
+
|
|
910
|
+
### 2.99.0.rc1 / 2014-05-18
|
|
911
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.beta2...v2.99.0.rc1)
|
|
912
|
+
|
|
913
|
+
Deprecations
|
|
914
|
+
|
|
915
|
+
* Deprecates `stub_model` and `mock_model` in favor of the
|
|
916
|
+
`rspec-activemodel-mocks` gem. (Thomas Holmes)
|
|
917
|
+
* Issue a deprecation to instruct users to configure
|
|
918
|
+
`config.infer_spec_type_from_file_location!` during the
|
|
919
|
+
upgrade process since spec type inference is opt-in in 3.0.
|
|
920
|
+
(Jon Rowe)
|
|
921
|
+
* Issue a deprecation when `described_class` is accessed in a controller
|
|
922
|
+
example group that has used the `controller { }` macro to generate an
|
|
923
|
+
anonymous controller class, since in 2.x, `described_class` would
|
|
924
|
+
return that generated class but in 3.0 it will continue returning the
|
|
925
|
+
class passed to `describe`. (Myron Marston)
|
|
926
|
+
|
|
927
|
+
### 2.99.0.beta2 / 2014-02-17
|
|
928
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.99.0.beta1...v2.99.0.beta2)
|
|
929
|
+
|
|
930
|
+
Deprecations:
|
|
931
|
+
|
|
932
|
+
* Deprecates the `--webrat` option to the scaffold and request spec generator (Andy Lindeman)
|
|
933
|
+
* Deprecates the use of `Capybara::DSL` (e.g., `visit`) in controller specs.
|
|
934
|
+
It is more appropriate to use capybara in feature specs (`spec/features`)
|
|
935
|
+
instead. (Andy Lindeman)
|
|
936
|
+
|
|
937
|
+
Bug Fixes:
|
|
938
|
+
|
|
939
|
+
* Use `__send__` rather than `send` to prevent naming collisions (Bradley Schaefer)
|
|
940
|
+
* Supports Rails 4.1. (Andy Lindeman)
|
|
941
|
+
* Loads ActiveSupport properly to support changes in Rails 4.1. (Andy Lindeman)
|
|
942
|
+
* Anonymous controllers inherit from `ActionController::Base` if `ApplicationController`
|
|
943
|
+
is not present. (Jon Rowe)
|
|
944
|
+
|
|
945
|
+
### 2.99.0.beta1 / 2013-11-07
|
|
946
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0...v2.99.0.beta1)
|
|
947
|
+
|
|
948
|
+
Deprecations:
|
|
949
|
+
|
|
950
|
+
* Deprecates autotest integration in favor of the `rspec-autotest` gem. (Andy
|
|
951
|
+
Lindeman)
|
|
952
|
+
|
|
953
|
+
Enhancements:
|
|
954
|
+
|
|
955
|
+
* Supports Rails 4.1 and Minitest 5. (Patrick Van Stee)
|
|
956
|
+
|
|
957
|
+
Bug Fixes:
|
|
958
|
+
|
|
959
|
+
* Fixes "warning: instance variable @orig\_routes not initialized" raised by
|
|
960
|
+
controller specs when `--warnings` are enabled. (Andy Lindeman)
|
|
961
|
+
* Where possible, check against the version of ActiveRecord, rather than
|
|
962
|
+
Rails. It is possible to use some of rspec-rails without all of Rails.
|
|
963
|
+
(Darryl Pogue)
|
|
964
|
+
* Explicitly depends on `activemodel`. This allows libraries that do not bring
|
|
965
|
+
in all of `rails` to use `rspec-rails`. (John Firebaugh)
|
|
966
|
+
|
|
967
|
+
### 2.14.1 / 2013-12-29
|
|
968
|
+
[full changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0...v2.14.1)
|
|
969
|
+
|
|
970
|
+
Bug Fixes:
|
|
971
|
+
|
|
972
|
+
* Fixes "warning: instance variable @orig\_routes not initialized" raised by
|
|
973
|
+
controller specs when `--warnings` are enabled. (Andy Lindeman)
|
|
974
|
+
* Where possible, check against the version of ActiveRecord, rather than
|
|
975
|
+
Rails. It is possible to use some of rspec-rails without all of Rails.
|
|
976
|
+
(Darryl Pogue)
|
|
977
|
+
* Supports Rails 4.1 and Minitest 5. (Patrick Van Stee, Andy Lindeman)
|
|
978
|
+
* Explicitly depends on `activemodel`. This allows libraries that do not bring
|
|
979
|
+
in all of `rails` to use `rspec-rails`. (John Firebaugh)
|
|
980
|
+
* Use `__send__` rather than `send` to prevent naming collisions (Bradley Schaefer)
|
|
981
|
+
|
|
982
|
+
### 2.14.0 / 2013-07-06
|
|
983
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.14.0.rc1...v2.14.0)
|
|
984
|
+
|
|
985
|
+
Bug fixes
|
|
986
|
+
|
|
987
|
+
* Rake tasks do not define methods that might interact with other libraries.
|
|
988
|
+
(Fujimura Daisuke)
|
|
989
|
+
* Reverts fix for out-of-order `let` definitions in controller specs after the
|
|
990
|
+
issue was fixed upstream in rspec-core. (Andy Lindeman)
|
|
991
|
+
* Fixes deprecation warning when using `expect(Model).to have(n).records` with
|
|
992
|
+
Rails 4. (Andy Lindeman)
|
|
993
|
+
|
|
994
|
+
### 2.14.0.rc1 / 2013-05-27
|
|
995
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.2...v2.14.0.rc1)
|
|
996
|
+
|
|
997
|
+
Enhancements
|
|
998
|
+
|
|
999
|
+
* Prelimiarily support Rails 4.1 by updating adapters to support Minitest 5.0.
|
|
1000
|
+
(Andy Lindeman)
|
|
1001
|
+
|
|
1002
|
+
Bug fixes
|
|
1003
|
+
|
|
1004
|
+
* `rake stats` runs correctly when spec files exist at the top level of the
|
|
1005
|
+
spec/ directory. (Benjamin Fleischer)
|
|
1006
|
+
|
|
1007
|
+
### 2.13.2 / 2013-05-18
|
|
1008
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.1...v2.13.2)
|
|
1009
|
+
|
|
1010
|
+
Bug fixes
|
|
1011
|
+
|
|
1012
|
+
* `let` definitions may override methods defined in modules brought in via
|
|
1013
|
+
`config.include` in controller specs. Fixes regression introduced in 2.13.
|
|
1014
|
+
(Andy Lindeman, Jon Rowe)
|
|
1015
|
+
* Code that checks Rails version numbers is more robust in cases where Rails is
|
|
1016
|
+
not fully loaded. (Andy Lindeman)
|
|
1017
|
+
|
|
1018
|
+
Enhancements
|
|
1019
|
+
|
|
1020
|
+
* Document how the spec/support directory works. (Sam Phippen)
|
|
1021
|
+
|
|
1022
|
+
### 2.13.1 / 2013-04-27
|
|
1023
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.13.0...v2.13.1)
|
|
1024
|
+
|
|
1025
|
+
Bug fixes
|
|
1026
|
+
|
|
1027
|
+
* View specs are no longer generated if no template engine is specified (Kevin
|
|
1028
|
+
Glowacz)
|
|
1029
|
+
* `ActionController::Base.allow_forgery_protection` is set to its original
|
|
1030
|
+
value after each example. (Mark Dimas)
|
|
1031
|
+
* `patch` is supported in routing specs. (Chris Your)
|
|
1032
|
+
* Routing assertions are supported in controller specs in Rails 4. (Andy
|
|
1033
|
+
Lindeman)
|
|
1034
|
+
* Fix spacing in the install generator template (Taiki ONO)
|
|
1035
|
+
|
|
1036
|
+
### 2.13.0 / 2013-02-23
|
|
1037
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.2...v2.13.0)
|
|
1038
|
+
|
|
1039
|
+
Enhancements
|
|
1040
|
+
|
|
1041
|
+
* `be_valid` matcher includes validation error messages. (Tom Scott)
|
|
1042
|
+
* Adds cucumber scenario showing how to invoke an anonymous controller's
|
|
1043
|
+
non-resourceful actions. (Paulo Luis Franchini Casaretto)
|
|
1044
|
+
* Null template handler is used when views are stubbed. (Daniel Schierbeck)
|
|
1045
|
+
* The generated `spec_helper.rb` in Rails 4 includes a check for pending
|
|
1046
|
+
migrations. (Andy Lindeman)
|
|
1047
|
+
* Adds `rake spec:features` task. (itzki)
|
|
1048
|
+
* Rake tasks are automatically generated for each spec/ directory.
|
|
1049
|
+
(Rudolf Schmidt)
|
|
1050
|
+
|
|
1051
|
+
### 2.12.2 / 2013-01-12
|
|
1052
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.1...v2.12.2)
|
|
1053
|
+
|
|
1054
|
+
Bug fixes
|
|
1055
|
+
|
|
1056
|
+
* Reverts earlier fix where anonymous controllers defined the `_routes` method
|
|
1057
|
+
to support testing of redirection and generation of URLs from other contexts.
|
|
1058
|
+
The implementation ended up breaking the ability to refer to non-anonymous
|
|
1059
|
+
routes in the context of the controller under test.
|
|
1060
|
+
* Uses `assert_select` correctly in view specs generated by scaffolding. (Andy
|
|
1061
|
+
Lindeman)
|
|
1062
|
+
|
|
1063
|
+
### 2.12.1 / 2013-01-07
|
|
1064
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.12.0...v2.12.1)
|
|
1065
|
+
|
|
1066
|
+
Bug fixes
|
|
1067
|
+
|
|
1068
|
+
* Operates correctly when ActiveRecord is only partially loaded (e.g., with
|
|
1069
|
+
older versions of Mongoid). (Eric Marden)
|
|
1070
|
+
* `expect(subject).to have(...).errors_on` operates correctly for
|
|
1071
|
+
ActiveResource models where `valid?` does not accept an argument. (Yi Wen)
|
|
1072
|
+
* Rails 4 support for routing specs. (Andy Lindeman)
|
|
1073
|
+
* Rails 4 support for `ActiveRecord::Relation` and the `=~` operator matcher.
|
|
1074
|
+
(Andy Lindeman)
|
|
1075
|
+
* Anonymous controllers define `_routes` to support testing of redirection
|
|
1076
|
+
and generation of URLs from other contexts. (Andy Lindeman)
|
|
1077
|
+
|
|
1078
|
+
### 2.12.0 / 2012-11-12
|
|
1079
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.11.4...v2.12.0)
|
|
1080
|
+
|
|
1081
|
+
Enhancements
|
|
1082
|
+
|
|
1083
|
+
* Support validation contexts when using `#errors_on` (Woody Peterson)
|
|
1084
|
+
* Include RequestExampleGroup in groups in spec/api
|
|
1085
|
+
|
|
1086
|
+
Bug fixes
|
|
1087
|
+
|
|
1088
|
+
* Add `should` and `should_not` to `CollectionProxy` (Rails 3.1+) and
|
|
1089
|
+
`AssociationProxy` (Rails 3.0). (Myron Marston)
|
|
1090
|
+
* `controller.controller_path` is set correctly for view specs in Rails 3.1+.
|
|
1091
|
+
(Andy Lindeman)
|
|
1092
|
+
* Generated specs support module namespacing (e.g., in a Rails engine).
|
|
1093
|
+
(Andy Lindeman)
|
|
1094
|
+
* `render` properly infers the view to be rendered in Rails 3.0 and 3.1
|
|
1095
|
+
(John Firebaugh)
|
|
1096
|
+
* AutoTest mappings involving config/ work correctly (Brent J. Nordquist)
|
|
1097
|
+
* Failures message for `be_new_record` are more useful (Andy Lindeman)
|
|
1098
|
+
|
|
1099
|
+
### 2.11.4 / 2012-10-14
|
|
1100
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.11.0...v2.11.4)
|
|
1101
|
+
|
|
1102
|
+
Capybara-2.0 integration support:
|
|
1103
|
+
|
|
1104
|
+
* include RailsExampleGroup in spec/features (necessary when there is no AR)
|
|
1105
|
+
* include Capybara::DSL and Capybara::RSpecMatchers in spec/features
|
|
1106
|
+
|
|
1107
|
+
See [https://github.com/jnicklas/capybara/pull/809](https://github.com/jnicklas/capybara/pull/809)
|
|
1108
|
+
and [https://rubydoc.info/gems/rspec-rails/file/Capybara.md](https://rubydoc.info/gems/rspec-rails/file/Capybara.md)
|
|
1109
|
+
for background.
|
|
1110
|
+
|
|
1111
|
+
2.11.1, .2, .3 were yanked due to errant documentation.
|
|
1112
|
+
|
|
1113
|
+
### 2.11.0 / 2012-07-07
|
|
1114
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.10.1...v2.11.0)
|
|
1115
|
+
|
|
1116
|
+
Enhancements
|
|
1117
|
+
|
|
1118
|
+
* The generated `spec/spec_helper.rb` sets `config.order = "random"` so that
|
|
1119
|
+
specs run in random order by default.
|
|
1120
|
+
* rename `render_template` to `have_rendered` (and alias to `render_template`
|
|
1121
|
+
for backward compatibility)
|
|
1122
|
+
* The controller spec generated with `rails generate scaffold namespaced::model`
|
|
1123
|
+
matches the spec generated with `rails generate scaffold namespaced/model`
|
|
1124
|
+
(Kohei Hasegawa)
|
|
1125
|
+
|
|
1126
|
+
Bug fixes
|
|
1127
|
+
|
|
1128
|
+
* "uninitialized constant" errors are avoided when using using gems like
|
|
1129
|
+
`rspec-rails-uncommitted` that define `Rspec::Rails` before `rspec-rails`
|
|
1130
|
+
loads (Andy Lindeman)
|
|
1131
|
+
|
|
1132
|
+
### 2.10.1 / 2012-05-03
|
|
1133
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.10.0...v2.10.1)
|
|
1134
|
+
|
|
1135
|
+
Bug fixes
|
|
1136
|
+
|
|
1137
|
+
* fix regression introduced in 2.10.0 that broke integration with Devise
|
|
1138
|
+
(https://github.com/rspec/rspec-rails/issues/534)
|
|
1139
|
+
* remove generation of helper specs when running the scaffold generator, as
|
|
1140
|
+
Rails already does this (Jack Dempsey)
|
|
1141
|
+
|
|
1142
|
+
### 2.10.0 / 2012-05-03
|
|
1143
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.9.0...v2.10.0)
|
|
1144
|
+
|
|
1145
|
+
Bug fixes
|
|
1146
|
+
|
|
1147
|
+
* `render_views` called in a spec can now override the config setting. (martinsvalin)
|
|
1148
|
+
* Fix `render_views` for anonymous controllers on 1.8.7. (hudge, mudge)
|
|
1149
|
+
* Eliminate use of deprecated `process_view_paths`
|
|
1150
|
+
* Fix false negatives when using `route_to` matcher with `should_not`
|
|
1151
|
+
* `controller` is no longer nil in `config.before` hooks
|
|
1152
|
+
* Change `request.path_parameters` keys to symbols to match real Rails
|
|
1153
|
+
environment (Nathan Broadbent)
|
|
1154
|
+
* Silence deprecation warnings in pre-2.9 generated view specs (Jonathan del
|
|
1155
|
+
Strother)
|
|
1156
|
+
|
|
1157
|
+
### 2.9.0 / 2012-03-17
|
|
1158
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.1...v2.9.0)
|
|
1159
|
+
|
|
1160
|
+
Enhancements
|
|
1161
|
+
|
|
1162
|
+
* add description method to RouteToMatcher (John Wulff)
|
|
1163
|
+
* Run "db:test:clone_structure" instead of "db:test:prepare" if Active Record's
|
|
1164
|
+
schema format is ":sql". (Andrey Voronkov)
|
|
1165
|
+
|
|
1166
|
+
Bug fixes
|
|
1167
|
+
|
|
1168
|
+
* `mock_model(XXX).as_null_object.unknown_method` returns self again
|
|
1169
|
+
* Generated view specs use different IDs for each attribute.
|
|
1170
|
+
|
|
1171
|
+
### 2.8.1 / 2012-01-04
|
|
1172
|
+
|
|
1173
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.0...v2.8.1)
|
|
1174
|
+
|
|
1175
|
+
NOTE: there was a change in rails-3.2.0.rc2 which broke compatibility with
|
|
1176
|
+
stub_model in rspec-rails. This release fixes that issue, but it means that
|
|
1177
|
+
you'll have to upgrade to rspec-rails-2.8.1 when you upgrade to rails >=
|
|
1178
|
+
3.2.0.rc2.
|
|
1179
|
+
|
|
1180
|
+
* Bug fixes
|
|
1181
|
+
* Explicitly stub valid? in stub_model. Fixes stub_model for rails versions
|
|
1182
|
+
>= 3.2.0.rc2.
|
|
1183
|
+
|
|
1184
|
+
### 2.8.0 / 2012-01-04
|
|
1185
|
+
|
|
1186
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.8.0.rc2...v2.8.0)
|
|
1187
|
+
|
|
1188
|
+
* Enhancements
|
|
1189
|
+
* Eliminate deprecation warnings in generated view specs in Rails 3.2
|
|
1190
|
+
* Ensure namespaced helpers are included automatically (Evgeniy Dolzhenko)
|
|
1191
|
+
* Added cuke scenario documenting which routes are generated for anonymous
|
|
1192
|
+
controllers (Alan Shields)
|
|
1193
|
+
|
|
1194
|
+
### 2.8.0.rc2 / 2011-12-19
|
|
1195
|
+
|
|
1196
|
+
[Full Changelog](https://github.com/rspec/rspec-mocks/compare/v2.8.0.rc1...v2.8.0.rc2)
|
|
1197
|
+
|
|
1198
|
+
* Enhancements
|
|
1199
|
+
* Add session hash to generated controller specs (Thiago Almeida)
|
|
1200
|
+
* Eliminate deprecation warnings about InstanceMethods modules in Rails 3.2
|
|
1201
|
+
|
|
1202
|
+
* Bug fixes
|
|
1203
|
+
* Stub attribute accessor after `respond_to?` call on mocked model (Igor
|
|
1204
|
+
Afonov)
|
|
1205
|
+
|
|
1206
|
+
### 2.8.0.rc1 / 2011-11-06
|
|
1207
|
+
|
|
1208
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.7.0...v2.8.0.rc1)
|
|
1209
|
+
|
|
1210
|
+
* Enhancements
|
|
1211
|
+
* Removed unnecessary "config.mock_with :rspec" from spec_helper.rb (Paul
|
|
1212
|
+
Annesley)
|
|
1213
|
+
|
|
1214
|
+
* Changes
|
|
1215
|
+
* No API changes for rspec-rails in this release, but some internals
|
|
1216
|
+
changed to align with rspec-core-2.8
|
|
1217
|
+
|
|
1218
|
+
* [rspec-core](https://github.com/rspec/rspec-core/blob/master/Changelog.md)
|
|
1219
|
+
* [rspec-expectations](https://github.com/rspec/rspec-expectations/blob/master/Changelog.md)
|
|
1220
|
+
* [rspec-mocks](https://github.com/rspec/rspec-mocks/blob/master/Changelog.md)
|
|
1221
|
+
|
|
1222
|
+
### 2.7.0 / 2011-10-16
|
|
1223
|
+
|
|
1224
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.6.1...v2.7.0)
|
|
1225
|
+
|
|
1226
|
+
* Enhancements
|
|
1227
|
+
* `ActiveRecord::Relation` can use the `=~` matcher (Andy Lindeman)
|
|
1228
|
+
* Make generated controller spec more consistent with regard to ids
|
|
1229
|
+
(Brent J. Nordquist)
|
|
1230
|
+
* Less restrictive autotest mapping between spec and implementation files
|
|
1231
|
+
(José Valim)
|
|
1232
|
+
* `require 'rspec/autorun'` from generated `spec_helper.rb` (David Chelimsky)
|
|
1233
|
+
* add `bypass_rescue` (Lenny Marks)
|
|
1234
|
+
* `route_to` accepts query string (Marc Weil)
|
|
1235
|
+
|
|
1236
|
+
* Internal
|
|
1237
|
+
* Added specs for generators using ammeter (Alex Rothenberg)
|
|
1238
|
+
|
|
1239
|
+
* Bug fixes
|
|
1240
|
+
* Fix configuration/integration bug with rails 3.0 (fixed in 3.1) in which
|
|
1241
|
+
`fixure_file_upload` reads from `ActiveSupport::TestCase.fixture_path` and
|
|
1242
|
+
misses RSpec's configuration (David Chelimsky)
|
|
1243
|
+
* Support nested resource in view spec generator (David Chelimsky)
|
|
1244
|
+
* Define `primary_key` on class generated by `mock_model("WithAString")`
|
|
1245
|
+
(David Chelimsky)
|
|
1246
|
+
|
|
1247
|
+
### 2.6.1 / 2011-05-25
|
|
1248
|
+
|
|
1249
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.6.0...v2.6.1)
|
|
1250
|
+
|
|
1251
|
+
This release is compatible with rails-3.1.0.rc1, but not rails-3.1.0.beta1
|
|
1252
|
+
|
|
1253
|
+
* Bug fixes
|
|
1254
|
+
* fix controller specs with anonymous controllers with around filters
|
|
1255
|
+
* exclude spec directory from rcov metrics (Rodrigo Navarro)
|
|
1256
|
+
* guard against calling prerequisites on nil default rake task (Jack Dempsey)
|
|
1257
|
+
|
|
1258
|
+
### 2.6.0 / 2011-05-12
|
|
1259
|
+
|
|
1260
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.5.0...v2.6.0)
|
|
1261
|
+
|
|
1262
|
+
* Enhancements
|
|
1263
|
+
* rails 3 shortcuts for routing specs (Joe Fiorini)
|
|
1264
|
+
* support nested resources in generators (Tim McEwan)
|
|
1265
|
+
* require 'rspec/rails/mocks' to use `mock_model` without requiring the whole
|
|
1266
|
+
rails framework
|
|
1267
|
+
* Update the controller spec generated by the rails scaffold generator:
|
|
1268
|
+
* Add documentation to the generated spec
|
|
1269
|
+
* Use `any_instance` to avoid stubbing finders
|
|
1270
|
+
* Use real objects instead of `mock_model`
|
|
1271
|
+
* Update capybara integration to work with capy 0.4 and 1.0.0.beta
|
|
1272
|
+
* Decorate paths passed to `[append|prepend]_view_paths` with empty templates
|
|
1273
|
+
unless rendering views. (Mark Turner)
|
|
1274
|
+
|
|
1275
|
+
* Bug fixes
|
|
1276
|
+
* fix typo in "rake spec:statsetup" (Curtis Schofield)
|
|
1277
|
+
* expose named routes in anonymous controller specs (Andy Lindeman)
|
|
1278
|
+
* error when generating namespaced scaffold resources (Andy Lindeman)
|
|
1279
|
+
* Fix load order issue w/ Capybara (oleg dashevskii)
|
|
1280
|
+
* Fix monkey patches that broke due to internal changes in rails-3.1.0.beta1
|
|
1281
|
+
|
|
1282
|
+
### 2.5.0 / 2011-02-05
|
|
1283
|
+
|
|
1284
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.4.1...v2.5.0)
|
|
1285
|
+
|
|
1286
|
+
* Enhancements
|
|
1287
|
+
* use index_helper instead of table_name when generating specs (Reza
|
|
1288
|
+
Primardiansyah)
|
|
1289
|
+
|
|
1290
|
+
* Bug fixes
|
|
1291
|
+
* fixed bug in which `render_views` in a nested group set the value in its
|
|
1292
|
+
parent group.
|
|
1293
|
+
* only include MailerExampleGroup when it is defined (Steve Sloan)
|
|
1294
|
+
* mock_model.as_null_object.attribute.blank? returns false (Randy Schmidt)
|
|
1295
|
+
* fix typo in request specs (Paco Guzman)
|
|
1296
|
+
|
|
1297
|
+
### 2.4.1 / 2011-01-03
|
|
1298
|
+
|
|
1299
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.4.0...v2.4.1)
|
|
1300
|
+
|
|
1301
|
+
* Bug fixes
|
|
1302
|
+
* fixed bug caused by including some Rails modules before RSpec's
|
|
1303
|
+
RailsExampleGroup
|
|
1304
|
+
|
|
1305
|
+
### 2.4.0 / 2011-01-02
|
|
1306
|
+
|
|
1307
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.3.1...v2.4.0)
|
|
1308
|
+
|
|
1309
|
+
* Enhancements
|
|
1310
|
+
* include ApplicationHelper in helper object in helper specs
|
|
1311
|
+
* include request spec extensions in files in spec/integration
|
|
1312
|
+
* include controller spec extensions in groups that use type: :controller
|
|
1313
|
+
* same for :model, :view, :helper, :mailer, :request, :routing
|
|
1314
|
+
|
|
1315
|
+
* Bug fixes
|
|
1316
|
+
* restore global config.render_views so you only need to say it once
|
|
1317
|
+
* support overriding render_views in nested groups
|
|
1318
|
+
* matchers that delegate to Rails' assertions capture
|
|
1319
|
+
ActiveSupport::TestCase::Assertion (so they work properly now with
|
|
1320
|
+
should_not in Ruby 1.8.7 and 1.9.1)
|
|
1321
|
+
|
|
1322
|
+
* Deprecations
|
|
1323
|
+
* include_self_when_dir_matches
|
|
1324
|
+
|
|
1325
|
+
### 2.3.1 / 2010-12-16
|
|
1326
|
+
|
|
1327
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.3.0...v2.3.1)
|
|
1328
|
+
|
|
1329
|
+
* Bug fixes
|
|
1330
|
+
* respond_to? correctly handles 2 args
|
|
1331
|
+
* scaffold generator no longer fails on autotest directory
|
|
1332
|
+
|
|
1333
|
+
### 2.3.0 / 2010-12-12
|
|
1334
|
+
|
|
1335
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.2.1...v2.3.0)
|
|
1336
|
+
|
|
1337
|
+
* Changes
|
|
1338
|
+
* Generator no longer generates autotest/autodiscover.rb, as it is no longer
|
|
1339
|
+
needed (as of rspec-core-2.3.0)
|
|
1340
|
+
|
|
1341
|
+
### 2.2.1 / 2010-12-01
|
|
1342
|
+
|
|
1343
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.2.0...v2.2.1)
|
|
1344
|
+
|
|
1345
|
+
* Bug fixes
|
|
1346
|
+
* Depend on railties, activesupport, and actionpack instead of rails (Piotr
|
|
1347
|
+
Solnica)
|
|
1348
|
+
* Got webrat integration working properly across different types of specs
|
|
1349
|
+
|
|
1350
|
+
* Deprecations
|
|
1351
|
+
* --webrat-matchers flag for generators is deprecated. use --webrat instead.
|
|
1352
|
+
|
|
1353
|
+
### 2.2.0 / 2010-11-28
|
|
1354
|
+
|
|
1355
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.1.0...v2.2.0)
|
|
1356
|
+
|
|
1357
|
+
* Enhancements
|
|
1358
|
+
* Added stub_template in view specs
|
|
1359
|
+
|
|
1360
|
+
* Bug fixes
|
|
1361
|
+
* Properly include helpers in views (Jonathan del Strother)
|
|
1362
|
+
* Fix bug in which method missing led to a stack overflow
|
|
1363
|
+
* Fix stack overflow in request specs with open_session
|
|
1364
|
+
* Fix stack overflow in any spec when method_missing was invoked
|
|
1365
|
+
* Add gem dependency on rails ~> 3.0.0 (ensures bundler won't install
|
|
1366
|
+
rspec-rails-2 with rails-2 apps).
|
|
1367
|
+
|
|
1368
|
+
### 2.1.0 / 2010-11-07
|
|
1369
|
+
|
|
1370
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.0.1...v2.1.0)
|
|
1371
|
+
|
|
1372
|
+
* Enhancements
|
|
1373
|
+
* Move errors_on to ActiveModel to support other AM-compliant ORMs
|
|
1374
|
+
|
|
1375
|
+
* Bug fixes
|
|
1376
|
+
* Check for presence of ActiveRecord instead of checking Rails config
|
|
1377
|
+
(gets rspec out of the way of multiple ORMs in the same app)
|
|
1378
|
+
|
|
1379
|
+
### 2.0.1 / 2010-10-15
|
|
1380
|
+
|
|
1381
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v2.0.0...v2.0.1)
|
|
1382
|
+
|
|
1383
|
+
* Enhancements
|
|
1384
|
+
* Add option to not generate request spec (--skip-request-specs)
|
|
1385
|
+
|
|
1386
|
+
* Bug fixes
|
|
1387
|
+
* Updated the mock_[model] method generated in controller specs so it adds
|
|
1388
|
+
any stubs submitted each time it is called.
|
|
1389
|
+
* Fixed bug where view assigns weren't making it to the view in view specs in Rails-3.0.1.
|
|
1390
|
+
(Emanuele Vicentini)
|
|
1391
|
+
|
|
1392
|
+
### 2.0.0 / 2010-10-10
|
|
1393
|
+
|
|
1394
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/ea6bdef...v2.0.0)
|
|
1395
|
+
|
|
1396
|
+
* Enhancements
|
|
1397
|
+
* ControllerExampleGroup uses controller as the implicit subject by default (Paul Rosania)
|
|
1398
|
+
* autotest mapping improvements (Andreas Neuhaus)
|
|
1399
|
+
* more cucumber features (Justin Ko)
|
|
1400
|
+
* clean up spec helper (Andre Arko)
|
|
1401
|
+
* add assign(name, value) to helper specs (Justin Ko)
|
|
1402
|
+
* stub_model supports primary keys other than id (Justin Ko)
|
|
1403
|
+
* support choice between Webrat/Capybara (Justin Ko)
|
|
1404
|
+
* support specs for 'abstract' subclasses of ActionController::Base (Mike Gehard)
|
|
1405
|
+
* be_a_new matcher supports args (Justin Ko)
|
|
1406
|
+
|
|
1407
|
+
* Bug fixes
|
|
1408
|
+
* support T::U components in mailer and request specs (Brasten Sager)
|