rspec-rails 6.1.0 → 6.1.1
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 +10 -1
- data/lib/rspec/rails/configuration.rb +4 -2
- data/lib/rspec/rails/fixture_support.rb +4 -4
- data/lib/rspec/rails/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +4 -4
- 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: b5ff6b0dc14db86b07e0cc46cd193329c85e21d15c9863ccbb5b73c54972daa6
|
4
|
+
data.tar.gz: c7bd505a3bfd16f881fb04b04e98ff7df9910d230eb17183fc68621a74d4b9d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6abbc3617dd82480b86c99c5d9347c94f8ac62bb944cf4ce1a223bea60046d9108be76fc3045a2e5f8549ad9813f7e831882f9ddee31de9d4215f643ce8a6d43
|
7
|
+
data.tar.gz: 07b551b367df408eaaa847307a6abd28a566a6a17ee4b552dc99a8bad95794f262884dc6e34a4d5717146fa001f89f6060cd1784818ed29f11f5361753fa606d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/Changelog.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
### Development
|
2
|
-
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.
|
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)
|
3
12
|
|
4
13
|
### 6.1.0 / 2023-11-21
|
5
14
|
[Full Changelog](https://github.com/rspec/rspec-rails/compare/v6.0.4...v6.1.0)
|
@@ -170,7 +170,8 @@ module RSpec
|
|
170
170
|
RSpec.deprecate(
|
171
171
|
"config.fixture_path",
|
172
172
|
replacement: "config.fixture_paths",
|
173
|
-
message: "Rails 7.1 has deprecated the singular fixture_path in favour of an array"
|
173
|
+
message: "Rails 7.1 has deprecated the singular fixture_path in favour of an array." \
|
174
|
+
"You should migrate to plural:"
|
174
175
|
)
|
175
176
|
fixture_paths&.first
|
176
177
|
end
|
@@ -179,7 +180,8 @@ module RSpec
|
|
179
180
|
RSpec.deprecate(
|
180
181
|
"config.fixture_path = #{path.inspect}",
|
181
182
|
replacement: "config.fixture_paths = [#{path.inspect}]",
|
182
|
-
message: "Rails 7.1 has deprecated the singular fixture_path in favour of an array"
|
183
|
+
message: "Rails 7.1 has deprecated the singular fixture_path in favour of an array." \
|
184
|
+
"You should migrate to plural:"
|
183
185
|
)
|
184
186
|
self.fixture_paths = Array(path)
|
185
187
|
end
|
@@ -43,14 +43,14 @@ module RSpec
|
|
43
43
|
if ::Rails.version.to_f >= 7.1
|
44
44
|
def fixtures(*args)
|
45
45
|
super.tap do
|
46
|
-
fixture_sets.
|
47
|
-
proxy_method_warning_if_called_in_before_context_scope(fixture_name)
|
46
|
+
fixture_sets.each_pair do |method_name, fixture_name|
|
47
|
+
proxy_method_warning_if_called_in_before_context_scope(method_name, fixture_name)
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
def proxy_method_warning_if_called_in_before_context_scope(fixture_name)
|
53
|
-
define_method(
|
52
|
+
def proxy_method_warning_if_called_in_before_context_scope(method_name, fixture_name)
|
53
|
+
define_method(method_name) do |*args, **kwargs, &blk|
|
54
54
|
if RSpec.current_scope == :before_context_hook
|
55
55
|
RSpec.warn_with("Calling fixture method in before :context ")
|
56
56
|
else
|
data/lib/rspec/rails/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chelimsky
|
@@ -44,7 +44,7 @@ cert_chain:
|
|
44
44
|
ZsVDj6a7lH3cNqtWXZxrb2wO38qV5AkYj8SQK7Hj3/Yui9myUX3crr+PdetazSqQ
|
45
45
|
F3MdtaDehhjC
|
46
46
|
-----END CERTIFICATE-----
|
47
|
-
date:
|
47
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
48
48
|
dependencies:
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: actionpack
|
@@ -297,7 +297,7 @@ licenses:
|
|
297
297
|
- MIT
|
298
298
|
metadata:
|
299
299
|
bug_tracker_uri: https://github.com/rspec/rspec-rails/issues
|
300
|
-
changelog_uri: https://github.com/rspec/rspec-rails/blob/v6.1.
|
300
|
+
changelog_uri: https://github.com/rspec/rspec-rails/blob/v6.1.1/Changelog.md
|
301
301
|
documentation_uri: https://rspec.info/documentation/
|
302
302
|
mailing_list_uri: https://groups.google.com/forum/#!forum/rspec
|
303
303
|
source_code_uri: https://github.com/rspec/rspec-rails
|
@@ -317,7 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
317
317
|
- !ruby/object:Gem::Version
|
318
318
|
version: '0'
|
319
319
|
requirements: []
|
320
|
-
rubygems_version: 3.
|
320
|
+
rubygems_version: 3.5.3
|
321
321
|
signing_key:
|
322
322
|
specification_version: 4
|
323
323
|
summary: RSpec for Rails
|
metadata.gz.sig
CHANGED
Binary file
|