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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d45d0f576ead81293a568b0d0a7de54b1c0f58db87a5146f321b6e2fe8a43433
4
- data.tar.gz: 20dcff696a39c8e9994be10dd677c461a2a7dca0bf15f91c894f1a71f22c8cd6
3
+ metadata.gz: bfd87617d187fbe6bdf2312b5700ff5fc891a5949649fd10e1c8154a5c2925ee
4
+ data.tar.gz: a48020fb9b525ba0da82e4140de521a0476f12753d20ebd7f90a19157714b7f7
5
5
  SHA512:
6
- metadata.gz: 93252710ba2a83ecfdddc34533498a0657ebca18ff0e53c78f283a53d0b2857df878741252fc40f70d55908e7d47dbf4a74461ba952e16fb89d8a9b485a0dd15
7
- data.tar.gz: '058000caeba140b5860d79b38e63b59c5043bab0ef3f526342bb927cb53b12fb057746c88082e21149f3413e44596a209ed786ed4b7614b60a8c33e6229c4fda'
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- minitest-spec-rails (7.2.0)
4
+ minitest-spec-rails (7.4.0)
5
5
  minitest (>= 5.0)
6
6
  railties (>= 4.1)
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- minitest-spec-rails (7.2.0)
4
+ minitest-spec-rails (7.4.0)
5
5
  minitest (>= 5.0)
6
6
  railties (>= 4.1)
7
7
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- minitest-spec-rails (7.2.0)
4
+ minitest-spec-rails (7.4.0)
5
5
  minitest (>= 5.0)
6
6
  railties (>= 4.1)
7
7
 
@@ -2,27 +2,29 @@ unless defined?(ActionCable::Channel)
2
2
  require 'action_cable/channel'
3
3
  end
4
4
 
5
- require 'action_cable/channel/test_case'
5
+ if Rails::VERSION::MAJOR >= 6
6
+ require 'action_cable/channel/test_case'
6
7
 
7
- module MiniTestSpecRails
8
- module Init
9
- module ActionCableBehavior
10
- extend ActiveSupport::Concern
8
+ module MiniTestSpecRails
9
+ module Init
10
+ module ActionCableBehavior
11
+ extend ActiveSupport::Concern
11
12
 
12
- included do
13
- class_attribute :_helper_class
14
- register_spec_type(/(Channel)( ?Test)?\z/, self)
15
- register_spec_type(self) { |desc| desc.is_a?(Class) && desc < self }
16
- extend Descriptions
17
- end
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
- module Descriptions
20
- def described_class
21
- determine_default_helper_class(name)
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) { |desc| desc.is_a?(Class) }
11
+ register_spec_type(self) { |_desc| true }
12
12
  end
13
13
 
14
14
  module Descriptions
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = '7.2.0'.freeze
2
+ VERSION = '7.4.0'.freeze
3
3
  end
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.2.0
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: 2023-08-23 00:00:00.000000000 Z
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.4.6
209
+ rubygems_version: 3.3.27
210
210
  signing_key:
211
211
  specification_version: 4
212
212
  summary: Make Rails Use Minitest::Spec!