rspec-rails 5.1.0 → 5.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/Changelog.md +14 -1
- data/lib/generators/rspec/scaffold/templates/api_controller_spec.rb +1 -1
- data/lib/generators/rspec/scaffold/templates/controller_spec.rb +1 -1
- data/lib/rspec/rails/configuration.rb +1 -0
- data/lib/rspec/rails/matchers/have_enqueued_mail.rb +1 -1
- data/lib/rspec/rails/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +7 -7
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be221e5df3386cb55e14f8047e02628bc11098596dcce06749701ac0b7497782
|
4
|
+
data.tar.gz: 56b12531541ff18599c13618ba2937859bb4cd860cc814b3350046ec4949e870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1786502c478ab9de29fbd59ce16371178776a7283698ba048b203f62aa614fc6c28e4c72b5064595f4eacd2cf309443de8d0d6803ac604e9d11a641c6f86c4b
|
7
|
+
data.tar.gz: 5860654b1926c2f2cdd998d2b84ac075167f7107bd687b74dae5bb9e17d7e76ef6b0c96dd022ec7a9be5dc0fe008e845808187080e97b400bec18b35d1872e76
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
### Development
|
2
|
-
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.
|
2
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.1...5-1-maintenance)
|
3
|
+
|
4
|
+
Bug Fixes:
|
5
|
+
|
6
|
+
* Fix controller scaffold templates parameter name. (Taketo Takashima, #2591)
|
7
|
+
* Include generator specs in the inferred list of specs. (Jason Karns, #2597)
|
8
|
+
|
9
|
+
### 5.1.1 / 2022-03-07
|
10
|
+
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.1.0...v5.1.1)
|
11
|
+
|
12
|
+
Bug Fixes:
|
13
|
+
|
14
|
+
* Properly handle global id serialised arguments in `have_enqueued_mail`.
|
15
|
+
(Jon Rowe, #2578)
|
3
16
|
|
4
17
|
### 5.1.0 / 2022-01-26
|
5
18
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v5.0.3...v5.1.0)
|
@@ -100,7 +100,7 @@ RSpec.describe <%= controller_class_name %>Controller, <%= type_metatag(:control
|
|
100
100
|
|
101
101
|
it "renders a JSON response with the <%= singular_table_name %>" do
|
102
102
|
<%= file_name %> = <%= class_name %>.create! valid_attributes
|
103
|
-
put :update, params: {id: <%= file_name %>.to_param, <%= singular_table_name %>:
|
103
|
+
put :update, params: {id: <%= file_name %>.to_param, <%= singular_table_name %>: new_attributes}, session: valid_session
|
104
104
|
expect(response).to have_http_status(:ok)
|
105
105
|
expect(response.content_type).to eq('application/json')
|
106
106
|
end
|
@@ -112,7 +112,7 @@ RSpec.describe <%= controller_class_name %>Controller, <%= type_metatag(:control
|
|
112
112
|
|
113
113
|
it "redirects to the <%= singular_table_name %>" do
|
114
114
|
<%= file_name %> = <%= class_name %>.create! valid_attributes
|
115
|
-
put :update, params: {id: <%= file_name %>.to_param, <%= singular_table_name %>:
|
115
|
+
put :update, params: {id: <%= file_name %>.to_param, <%= singular_table_name %>: new_attributes}, session: valid_session
|
116
116
|
expect(response).to redirect_to(<%= file_name %>)
|
117
117
|
end
|
118
118
|
end
|
@@ -145,7 +145,7 @@ module RSpec
|
|
145
145
|
if hash.key?("_aj_ruby2_keywords")
|
146
146
|
keywords = hash["_aj_ruby2_keywords"]
|
147
147
|
|
148
|
-
original_hash = keywords.each_with_object({}) { |
|
148
|
+
original_hash = keywords.each_with_object({}) { |keyword, new_hash| new_hash[keyword.to_sym] = hash[keyword] }
|
149
149
|
|
150
150
|
args + [original_hash]
|
151
151
|
elsif hash.key?(:args) && hash.key?(:params)
|
data/lib/rspec/rails/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chelimsky
|
8
8
|
- Andy Lindeman
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain:
|
12
12
|
- |
|
@@ -44,7 +44,7 @@ cert_chain:
|
|
44
44
|
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
45
45
|
F3MdtaDehhjC
|
46
46
|
-----END CERTIFICATE-----
|
47
|
-
date: 2022-
|
47
|
+
date: 2022-04-24 00:00:00.000000000 Z
|
48
48
|
dependencies:
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: actionpack
|
@@ -308,11 +308,11 @@ licenses:
|
|
308
308
|
- MIT
|
309
309
|
metadata:
|
310
310
|
bug_tracker_uri: https://github.com/rspec/rspec-rails/issues
|
311
|
-
changelog_uri: https://github.com/rspec/rspec-rails/blob/v5.1.
|
311
|
+
changelog_uri: https://github.com/rspec/rspec-rails/blob/v5.1.2/Changelog.md
|
312
312
|
documentation_uri: https://rspec.info/documentation/
|
313
313
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
314
314
|
source_code_uri: https://github.com/rspec/rspec-rails
|
315
|
-
post_install_message:
|
315
|
+
post_install_message:
|
316
316
|
rdoc_options:
|
317
317
|
- "--charset=UTF-8"
|
318
318
|
require_paths:
|
@@ -328,8 +328,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
328
328
|
- !ruby/object:Gem::Version
|
329
329
|
version: '0'
|
330
330
|
requirements: []
|
331
|
-
rubygems_version: 3.
|
332
|
-
signing_key:
|
331
|
+
rubygems_version: 3.1.6
|
332
|
+
signing_key:
|
333
333
|
specification_version: 4
|
334
334
|
summary: RSpec for Rails
|
335
335
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|