minitest-spec-rails 7.2.0 → 7.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/gemfiles/rails_v6.0.x.gemfile.lock +1 -1
- data/gemfiles/rails_v6.1.x.gemfile.lock +1 -1
- data/gemfiles/rails_v7.0.x.gemfile.lock +1 -1
- data/lib/minitest-spec-rails/init/action_cable.rb +18 -16
- data/lib/minitest-spec-rails/init/active_support.rb +1 -1
- data/lib/minitest-spec-rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfd87617d187fbe6bdf2312b5700ff5fc891a5949649fd10e1c8154a5c2925ee
|
4
|
+
data.tar.gz: a48020fb9b525ba0da82e4140de521a0476f12753d20ebd7f90a19157714b7f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37b59f19fe9fff95a4c2f594d32c637c303eefc314217c0040507e6399c8ecf37c47f7ead4d2255b0187a2968f8cfb1e33be32353c1c93222168894be89e586b
|
7
|
+
data.tar.gz: b8b95ad3365324ad1ca5eb29c78479bab5e3802353b7e2fbd339454bea653b74c9bdc1df1d342c6bcbdf7cb7b0b8bb8f5e952e6e86dfe003c1592ee9e5b38f96
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 7.4.0
|
2
|
+
|
3
|
+
- Fix require `action_cable/channel/test_case` errors with Rails 5.x. Fixes #124
|
4
|
+
|
5
|
+
## 7.3.0
|
6
|
+
|
7
|
+
- Fix require `action_cable/channel/test_case` errors with Rails 5.x. Fixes #124
|
8
|
+
|
1
9
|
## 7.2.0
|
2
10
|
|
3
11
|
- Wrap action_view init in config.to_prepare block. Fixes #122. Thanks @Hal-Sumi
|
@@ -2,27 +2,29 @@ unless defined?(ActionCable::Channel)
|
|
2
2
|
require 'action_cable/channel'
|
3
3
|
end
|
4
4
|
|
5
|
-
|
5
|
+
if Rails::VERSION::MAJOR >= 6
|
6
|
+
require 'action_cable/channel/test_case'
|
6
7
|
|
7
|
-
module MiniTestSpecRails
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
module MiniTestSpecRails
|
9
|
+
module Init
|
10
|
+
module ActionCableBehavior
|
11
|
+
extend ActiveSupport::Concern
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
included do
|
14
|
+
class_attribute :_helper_class
|
15
|
+
register_spec_type(/(Channel)( ?Test)?\z/, self)
|
16
|
+
register_spec_type(self) { |desc| desc.is_a?(Class) && desc < self }
|
17
|
+
extend Descriptions
|
18
|
+
end
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
module Descriptions
|
21
|
+
def described_class
|
22
|
+
determine_default_helper_class(name)
|
23
|
+
end
|
22
24
|
end
|
23
25
|
end
|
24
26
|
end
|
25
27
|
end
|
26
|
-
end
|
27
28
|
|
28
|
-
ActionCable::Channel::TestCase.include MiniTestSpecRails::Init::ActionCableBehavior
|
29
|
+
ActionCable::Channel::TestCase.include MiniTestSpecRails::Init::ActionCableBehavior
|
30
|
+
end
|
@@ -8,7 +8,7 @@ module MiniTestSpecRails
|
|
8
8
|
include MiniTestSpecRails::DSL
|
9
9
|
include ActiveSupport::Testing::ConstantLookup
|
10
10
|
extend Descriptions
|
11
|
-
register_spec_type(self) { |
|
11
|
+
register_spec_type(self) { |_desc| true }
|
12
12
|
end
|
13
13
|
|
14
14
|
module Descriptions
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-spec-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Collins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
206
|
- !ruby/object:Gem::Version
|
207
207
|
version: '0'
|
208
208
|
requirements: []
|
209
|
-
rubygems_version: 3.
|
209
|
+
rubygems_version: 3.3.27
|
210
210
|
signing_key:
|
211
211
|
specification_version: 4
|
212
212
|
summary: Make Rails Use Minitest::Spec!
|