minitest-spec-rails 6.1.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ea5d94b6b919f097df9a0752e3134728d468e6d6be5048c1d54fe2fe93af229
4
- data.tar.gz: 5e13bb3801194286492d2262354f9c3f3e9d4c349f832ffc0ee894b3fcfbf75e
3
+ metadata.gz: 41993f64d8b90aa1cc2984e7b50670de5b12f39a86a0a5b646644584308b8dd9
4
+ data.tar.gz: 6cefc26e1b9a27ff330e1b864e8906fa3ef02ff6c617816af726cef9d20819df
5
5
  SHA512:
6
- metadata.gz: d8603d5bac134d1e626dd7bff373b7a04d701a88773f0170534e182cc93f5e5e66191e43bfc21f143f3fae8382b48c72e32d9f509e0132ccef862e36360eb500
7
- data.tar.gz: 14a5eefc0cfe12707f124bc0016d9c54eed9b6bc0569bbf6204aa993f88fc0405422b6dbcc7261081ee235daa2a5627f509e9011302820a3f83d3324cb57b0da
6
+ metadata.gz: 75b4a8ea89bae06a7700068b84473f514b5366567dc134b2cfdc75a4d28af60952e71246cfa56dd631465b9ebaa00a5b42493f173b661cb743e95cdf0c14789e
7
+ data.tar.gz: fbc2400c04af0ddc2118ff803b85fc32204b6ee4930a4abae9db5c31ff22ab1045629f0ebee3f3b4742f94cb3a7514863193d2ae7918773ca56315d1953299d6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 6.2.0
2
+
3
+ - Remove 'ENV['RAILS_ENV']=='test' from railtie.rb Fixes #114. Thanks @Qqwy
4
+
1
5
  ## 6.1.0
2
6
 
3
7
  - Fix Rails v7 autoloading with ViewComponent. Thanks @woller
@@ -3,32 +3,30 @@ module MiniTestSpecRails
3
3
  config.minitest_spec_rails = ActiveSupport::OrderedOptions.new
4
4
  config.minitest_spec_rails.mini_shoulda = false
5
5
 
6
- if ENV['RAILS_ENV'] == 'test'
7
- config.before_initialize do |_app|
8
- require 'active_support'
9
- require 'minitest-spec-rails/init/active_support'
10
- require 'minitest-spec-rails/parallelize'
11
- ActiveSupport.on_load(:action_controller) do
12
- require 'minitest-spec-rails/init/action_controller'
13
- require 'minitest-spec-rails/init/action_dispatch'
14
- end
15
- ActiveSupport.on_load(:action_mailer) do
16
- require 'minitest-spec-rails/init/action_mailer'
17
- end
18
- ActiveSupport.on_load(:active_job) do
19
- require 'minitest-spec-rails/init/active_job'
20
- end
6
+ config.before_initialize do |_app|
7
+ require 'active_support'
8
+ require 'minitest-spec-rails/init/active_support'
9
+ require 'minitest-spec-rails/parallelize'
10
+ ActiveSupport.on_load(:action_controller) do
11
+ require 'minitest-spec-rails/init/action_controller'
12
+ require 'minitest-spec-rails/init/action_dispatch'
21
13
  end
22
-
23
- initializer 'minitest-spec-rails.action_view', after: 'action_view.setup_action_pack', group: :all do |_app|
24
- ActiveSupport.on_load(:action_view) do
25
- require 'minitest-spec-rails/init/action_view'
26
- end
14
+ ActiveSupport.on_load(:action_mailer) do
15
+ require 'minitest-spec-rails/init/action_mailer'
16
+ end
17
+ ActiveSupport.on_load(:active_job) do
18
+ require 'minitest-spec-rails/init/active_job'
27
19
  end
20
+ end
28
21
 
29
- initializer 'minitest-spec-rails.mini_shoulda', group: :all do |app|
30
- require 'minitest-spec-rails/init/mini_shoulda' if app.config.minitest_spec_rails.mini_shoulda
22
+ initializer 'minitest-spec-rails.action_view', after: 'action_view.setup_action_pack', group: :all do |_app|
23
+ ActiveSupport.on_load(:action_view) do
24
+ require 'minitest-spec-rails/init/action_view'
31
25
  end
32
26
  end
27
+
28
+ initializer 'minitest-spec-rails.mini_shoulda', group: :all do |app|
29
+ require 'minitest-spec-rails/init/mini_shoulda' if app.config.minitest_spec_rails.mini_shoulda
30
+ end
33
31
  end
34
32
  end
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = '6.1.0'.freeze
2
+ VERSION = '6.2.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: 6.1.0
4
+ version: 6.2.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: 2021-11-02 00:00:00.000000000 Z
11
+ date: 2022-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest