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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a2989f1706a0168c45d78e39ab60653fd2bfa474b35da44baf10a3c96a6bafc
4
- data.tar.gz: 1bf80ba6ff70170f2ade4032752a119ae50e71c5ef9088d2bb0433801e478ed6
3
+ metadata.gz: 839dd8e8f0da8e0b6550b3f260c07805ec84b45b692705b32c4cb82851321eb5
4
+ data.tar.gz: 00b7284cb4ac40caea168d11322e8c7f0a7b6d741db9e265735835ff5a3ca49f
5
5
  SHA512:
6
- metadata.gz: 69bde3a701acbb80be35241215857814b7dd1511e50a7b83c0035a3c8ee157eee9787271100bb59123cf8906feb0e023d0bbae9dd664ec27f3cd2af45329b8a0
7
- data.tar.gz: a272548e1b379d1e378e924ad8173986961746678e37a34f390f8543bada37fd4537b9f271e0af735c357f222ee8c805ec4ae477ebc8eb1c07a76a996098fc92
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- minitest-spec-rails (7.1.0)
4
+ minitest-spec-rails (7.3.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.1.0)
4
+ minitest-spec-rails (7.3.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.1.0)
4
+ minitest-spec-rails (7.3.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
@@ -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
- ActiveSupport.on_load(:action_view) do
27
- require 'minitest-spec-rails/init/action_view'
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
 
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = '7.1.0'.freeze
2
+ VERSION = '7.3.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.1.0
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: 2023-07-31 00:00:00.000000000 Z
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.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!