minitest-spec-rails 7.1.0 → 7.3.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/railtie.rb +4 -2
- 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: 839dd8e8f0da8e0b6550b3f260c07805ec84b45b692705b32c4cb82851321eb5
|
4
|
+
data.tar.gz: 00b7284cb4ac40caea168d11322e8c7f0a7b6d741db9e265735835ff5a3ca49f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92684e348d84f1c8340da6e0a6c94bf101fc1af0a800077c3409016a7a03cf5d2712c2cfdc91c21328b410e5af4faf4ae545e0be633e2822f12e1b33e6528aed
|
7
|
+
data.tar.gz: 942f27bab6397b17392ac7f29b65b0a991fdd6582885915376fc8bbffb69e7e15131591f8529ed9484751481f6005415f068e76117cd8b8a1cac1f003e9f7208
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
## 7.3.0
|
2
|
+
|
3
|
+
- Fix require `action_cable/channel/test_case` errors with Rails 5.x. Fixes #124
|
4
|
+
|
5
|
+
## 7.2.0
|
6
|
+
|
7
|
+
- Wrap action_view init in config.to_prepare block. Fixes #122. Thanks @Hal-Sumi
|
8
|
+
|
1
9
|
## 7.1.0
|
2
10
|
|
3
11
|
- Use Minitest instead of MiniTest. Fixes #119. Thanks @evgeni
|
@@ -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
|
@@ -23,8 +23,10 @@ module MiniTestSpecRails
|
|
23
23
|
end
|
24
24
|
|
25
25
|
initializer 'minitest-spec-rails.action_view', after: 'action_view.setup_action_pack', group: :all do |_app|
|
26
|
-
|
27
|
-
|
26
|
+
Rails.application.config.to_prepare do
|
27
|
+
ActiveSupport.on_load(:action_view) do
|
28
|
+
require 'minitest-spec-rails/init/action_view'
|
29
|
+
end
|
28
30
|
end
|
29
31
|
end
|
30
32
|
|
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.3.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-08-23 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!
|