minitest-spec-rails 6.0.4 → 6.2.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: a822dd4545199db4b739fcdce3cd6f37ba52b33ee2003b35c0e38a454beb2d95
4
- data.tar.gz: 7862edf7f6a40838e622e2b1f6eba095df42f760f257ae71df5b5bf06e4bf7ee
3
+ metadata.gz: 41993f64d8b90aa1cc2984e7b50670de5b12f39a86a0a5b646644584308b8dd9
4
+ data.tar.gz: 6cefc26e1b9a27ff330e1b864e8906fa3ef02ff6c617816af726cef9d20819df
5
5
  SHA512:
6
- metadata.gz: fe7c82452120cd6c56f409d4b0270da309b07edd7fe37267c033491df703434f693a5d46d675e9ff8b837a7b5077a3a116b20ca5d3ef2f10edc3d97a4df48566
7
- data.tar.gz: d0ad9ced0e0fbe397973fd28c57fa42b86f15b9a8ea368bd63a45128b1d812aa19fd8f6002d4eb0b9da0423e7e481837ed9c2340218e17e5bbfd6f2588fe6be8
6
+ metadata.gz: 75b4a8ea89bae06a7700068b84473f514b5366567dc134b2cfdc75a4d28af60952e71246cfa56dd631465b9ebaa00a5b42493f173b661cb743e95cdf0c14789e
7
+ data.tar.gz: fbc2400c04af0ddc2118ff803b85fc32204b6ee4930a4abae9db5c31ff22ab1045629f0ebee3f3b4742f94cb3a7514863193d2ae7918773ca56315d1953299d6
data/Appraisals CHANGED
@@ -14,3 +14,9 @@ appraise 'rails_v6.0.x' do
14
14
  gem 'rails', '~> 6.0.0'
15
15
  gem 'minitest'
16
16
  end
17
+
18
+ appraise 'rails_v7.0.x' do
19
+ gem 'rails', '~> 7.0.0.alpha2'
20
+ gem 'minitest'
21
+ gem 'view_component', require: 'view_component/engine'
22
+ end
data/CHANGELOG.md CHANGED
@@ -1,54 +1,62 @@
1
+ ## 6.2.0
2
+
3
+ - Remove 'ENV['RAILS_ENV']=='test' from railtie.rb Fixes #114. Thanks @Qqwy
4
+
5
+ ## 6.1.0
6
+
7
+ - Fix Rails v7 autoloading with ViewComponent. Thanks @woller
8
+
1
9
  ## 6.0.4
2
10
 
3
- * Fixed parallel tests with relative paths. Thanks @jlsherrill
11
+ - Fixed parallel tests with relative paths. Thanks @jlsherrill
4
12
 
5
13
  ## 6.0.3
6
14
 
7
- * Better ActionView load. Fixed #105. Thanks @zofrex
15
+ - Better ActionView load. Fixed #105. Thanks @zofrex
8
16
 
9
17
  ## 6.0.2
10
18
 
11
- * Fixed parallel tests in Rails v6.
19
+ - Fixed parallel tests in Rails v6.
12
20
 
13
21
  ## 6.0.1
14
22
 
15
- * Changed gemspec to `railties` vs `rails`. Thanks @seuros
23
+ - Changed gemspec to `railties` vs `rails`. Thanks @seuros
16
24
 
17
25
  ## 6.0.0
18
26
 
19
- * Bumping to be major with latest testing versions.
27
+ - Bumping to be major with latest testing versions.
20
28
 
21
29
  ## 5.6.0
22
30
 
23
- * Add Rails v6 via gem spec support.
31
+ - Add Rails v6 via gem spec support.
24
32
 
25
33
  ## 5.5.0
26
34
 
27
- * Fix source_location of methods defined with `test`. Fixes #91. Thanks @barrettkingram
35
+ - Fix source_location of methods defined with `test`. Fixes #91. Thanks @barrettkingram
28
36
 
29
37
  ## 5.4.0
30
38
 
31
- * Use ENV['RAILS_ENV'] for initializer guards vs memo'ed Rails.env. Fixes #72.
39
+ - Use ENV['RAILS_ENV'] for initializer guards vs memo'ed Rails.env. Fixes #72.
32
40
 
33
41
  ## 5.3.0
34
42
 
35
- * Allow Rails 4.1 to new 5.x to be supported.
43
+ - Allow Rails 4.1 to new 5.x to be supported.
36
44
 
37
45
  ## 5.2.2
38
46
 
39
- * Fix ActiveJob support for `described_class`. Thanks @pschambacher.
47
+ - Fix ActiveJob support for `described_class`. Thanks @pschambacher.
40
48
 
41
49
  ## 5.2.1
42
50
 
43
- * Only add our Thread.current[:current_spec] hack if needed. Fixes #45.
51
+ - Only add our Thread.current[:current_spec] hack if needed. Fixes #45.
44
52
 
45
53
  ## 5.2.0
46
54
 
47
- * Added ActiveJob support. Fixes #59. Thanks @xpepermint.
55
+ - Added ActiveJob support. Fixes #59. Thanks @xpepermint.
48
56
 
49
57
  ## 5.1.1
50
58
 
51
- * Fix an issue where `describe` method was removed. Fixes #55 & #50
59
+ - Fix an issue where `describe` method was removed. Fixes #55 & #50
52
60
  [41a0f851](https://github.com/metaskills/minitest-spec-rails/commit/41a0f851c8a290f59feb1cb8b20759f0e2a9697a)
53
61
 
54
62
  ## 5.1.0
@@ -57,147 +65,120 @@ No release notes yet. PRs welcome!
57
65
 
58
66
  ## 5.0.4
59
67
 
60
- * Fixed ActiveSupport's Declarative#test forwarded implementation. Fixed #46.
61
-
68
+ - Fixed ActiveSupport's Declarative#test forwarded implementation. Fixed #46.
62
69
 
63
70
  ## 5.0.3
64
71
 
65
- * Fixed ActionView load order & url helpers. Fixes #42.
66
-
72
+ - Fixed ActionView load order & url helpers. Fixes #42.
67
73
 
68
74
  ## 5.0.2
69
75
 
70
- * Fixed initialization callbacks for latest Rails 4.1. Fixes #39.
71
-
76
+ - Fixed initialization callbacks for latest Rails 4.1. Fixes #39.
72
77
 
73
78
  ## 5.0.1
74
79
 
75
- * Change initialization so that ActiveSupport always comes first.
76
-
80
+ - Change initialization so that ActiveSupport always comes first.
77
81
 
78
82
  ## 5.0.0
79
83
 
80
- * Minitest 5.x and Rails 4.1 compatability. Fixes #36.
81
- * Fix nested described test names along with Minitest::Spec.describe_stack. Fixed #21.
82
- * Leverage `ActiveSupport::Testing::ConstantLookup` for our `described_class` interface.
83
-
84
+ - Minitest 5.x and Rails 4.1 compatability. Fixes #36.
85
+ - Fix nested described test names along with Minitest::Spec.describe_stack. Fixed #21.
86
+ - Leverage `ActiveSupport::Testing::ConstantLookup` for our `described_class` interface.
84
87
 
85
88
  ## 4.7.6
86
89
 
87
- * Fix nested described test names. Fixes #21.
88
-
90
+ - Fix nested described test names. Fixes #21.
89
91
 
90
92
  ## 4.7.5
91
93
 
92
- * Fixed gemspec using '>= 3.0', '< 4.1'. Fixed #35.
93
-
94
+ - Fixed gemspec using '>= 3.0', '< 4.1'. Fixed #35.
94
95
 
95
96
  ## 4.7.4
96
97
 
97
- * Enforces case sensitivity on registered spec types. Fixes #26.
98
-
98
+ - Enforces case sensitivity on registered spec types. Fixes #26.
99
99
 
100
100
  ## 4.7.3
101
101
 
102
- * Allow using ActiveSupport's Declarative#test as an alias to it. Thanks @ysbaddaden. Fixes #23.
103
-
102
+ - Allow using ActiveSupport's Declarative#test as an alias to it. Thanks @ysbaddaden. Fixes #23.
104
103
 
105
104
  ## 4.7.2
106
105
 
107
- * Register non ActiveRecord::Base classes correctly. Thanks @mptre.
108
-
106
+ - Register non ActiveRecord::Base classes correctly. Thanks @mptre.
109
107
 
110
108
  ## 4.7.1
111
109
 
112
- * Only use a TU shim for Ruby 1.8. See README for info. Fixes #18.
113
-
110
+ - Only use a TU shim for Ruby 1.8. See README for info. Fixes #18.
114
111
 
115
112
  ## 4.7.0
116
113
 
117
- * Use Minitest::Spec::DSL provided by Minitest 4.7.
118
-
114
+ - Use Minitest::Spec::DSL provided by Minitest 4.7.
119
115
 
120
116
  ## 4.3.8
121
117
 
122
- * Less coupling to ActiveRecord ORM, works for MongoDB now. Thanks @kimsuelim
123
-
118
+ - Less coupling to ActiveRecord ORM, works for MongoDB now. Thanks @kimsuelim
124
119
 
125
120
  ## v4.3.7
126
121
 
127
- * Fix helper test bug where calling methods in first context block blew up. Fixes #13.
128
-
122
+ - Fix helper test bug where calling methods in first context block blew up. Fixes #13.
129
123
 
130
124
  ## v4.3.6
131
125
 
132
- * Only require the freedom patches and autorun when Rails.env.test?
133
-
126
+ - Only require the freedom patches and autorun when Rails.env.test?
134
127
 
135
128
  ## v4.3.5
136
129
 
137
- * Make sure #described_class works in ActiveSupport::TestCase class level.
138
-
130
+ - Make sure #described_class works in ActiveSupport::TestCase class level.
139
131
 
140
132
  ## v4.3.4
141
133
 
142
- * Add mini_should support and talk about matchers.
143
-
134
+ - Add mini_should support and talk about matchers.
144
135
 
145
136
  ## v4.3.3
146
137
 
147
- * Fix MiniTest::Unit::TestCase hack for Rails 4, ignore in Rails 3.
148
-
138
+ - Fix MiniTest::Unit::TestCase hack for Rails 4, ignore in Rails 3.
149
139
 
150
140
  ## v4.3.2
151
141
 
152
- * Way better support for controller_class, mailer_class, and helper_class reflection.
153
-
142
+ - Way better support for controller_class, mailer_class, and helper_class reflection.
154
143
 
155
144
  ## v4.3.1
156
145
 
157
- * Eager load controller_class, mailer_class, and helper_class.
158
-
146
+ - Eager load controller_class, mailer_class, and helper_class.
159
147
 
160
148
  ## v4.3.0
161
149
 
162
- * All new MiniTest::Spec for Rails!!! Tested to the hilt!!!
163
- * Track MiniTest's major/minior version number.
164
-
150
+ - All new MiniTest::Spec for Rails!!! Tested to the hilt!!!
151
+ - Track MiniTest's major/minior version number.
165
152
 
166
153
  ## v3.0.7
167
154
 
168
- * Must use MiniTest version ~> 2.1. As 3.x will not work.
169
-
155
+ - Must use MiniTest version ~> 2.1. As 3.x will not work.
170
156
 
171
157
  ## v3.0.6
172
158
 
173
- * Use #constantize vs. #safe_constantize for Rails 3.0 compatability.
174
-
159
+ - Use #constantize vs. #safe_constantize for Rails 3.0 compatability.
175
160
 
176
161
  ## v3.0.5
177
162
 
178
- * Use ActionController::IntegrationTest vs. ActionDispatch::IntegrationTest
179
-
163
+ - Use ActionController::IntegrationTest vs. ActionDispatch::IntegrationTest
180
164
 
181
165
  ## v3.0.4
182
166
 
183
- * Use class app setter for integration tests.
184
-
167
+ - Use class app setter for integration tests.
185
168
 
186
169
  ## v3.0.3
187
170
 
188
- * Stronger test case organization where we properly setup functional and integraiton tests
171
+ - Stronger test case organization where we properly setup functional and integraiton tests
189
172
  while also allowing an alternate pure MiniTest::Spec outter file describe block. [Jack Chu]
190
173
 
191
-
192
174
  ## v3.0.2
193
175
 
194
- * Remove version deps on minitest since v3 is out. Should work with any v2/3 version.
195
-
176
+ - Remove version deps on minitest since v3 is out. Should work with any v2/3 version.
196
177
 
197
178
  ## v3.0.1
198
179
 
199
- * Add rails to the gemspec.
180
+ - Add rails to the gemspec.
200
181
 
201
182
  ## v3.0.0
202
183
 
203
- * Initial Release, targeted to Rails 3.x.
184
+ - Initial Release, targeted to Rails 3.x.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- minitest-spec-rails (6.0.4)
4
+ minitest-spec-rails (6.1.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 (6.0.4)
4
+ minitest-spec-rails (6.1.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 (6.0.4)
4
+ minitest-spec-rails (6.1.0)
5
5
  minitest (>= 5.0)
6
6
  railties (>= 4.1)
7
7
 
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 7.0.0.alpha2"
6
+ gem "minitest"
7
+ gem "view_component", require: "view_component/engine"
8
+
9
+ gemspec path: "../"
@@ -19,4 +19,6 @@ module MiniTestSpecRails
19
19
  end
20
20
  end
21
21
 
22
- ActionView::TestCase.send :include, MiniTestSpecRails::Init::ActionViewBehavior
22
+ Rails.application.reloader.to_prepare do
23
+ ActionView::TestCase.send :include, MiniTestSpecRails::Init::ActionViewBehavior
24
+ end
@@ -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.0.4'.freeze
2
+ VERSION = '6.2.0'.freeze
3
3
  end
@@ -0,0 +1,34 @@
1
+ test:
2
+ service: Disk
3
+ root: <%= Rails.root.join("tmp/storage") %>
4
+
5
+ local:
6
+ service: Disk
7
+ root: <%= Rails.root.join("storage") %>
8
+
9
+ # Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
10
+ # amazon:
11
+ # service: S3
12
+ # access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
13
+ # secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
14
+ # region: us-east-1
15
+ # bucket: your_own_bucket
16
+
17
+ # Remember not to checkin your GCS keyfile to a repository
18
+ # google:
19
+ # service: GCS
20
+ # project: your_project
21
+ # credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
22
+ # bucket: your_own_bucket
23
+
24
+ # Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
25
+ # microsoft:
26
+ # service: AzureStorage
27
+ # storage_account_name: your_account_name
28
+ # storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
29
+ # container: your_container_name
30
+
31
+ # mirror:
32
+ # service: Mirror
33
+ # primary: local
34
+ # mirrors: [ amazon, google, microsoft ]
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.0.4
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-04-30 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
@@ -105,6 +105,7 @@ files:
105
105
  - gemfiles/rails_v5.2.x.gemfile.lock
106
106
  - gemfiles/rails_v6.0.x.gemfile
107
107
  - gemfiles/rails_v6.0.x.gemfile.lock
108
+ - gemfiles/rails_v7.0.x.gemfile
108
109
  - lib/minitest-spec-rails.rb
109
110
  - lib/minitest-spec-rails/dsl.rb
110
111
  - lib/minitest-spec-rails/init/action_controller.rb
@@ -137,6 +138,7 @@ files:
137
138
  - test/dummy_app/app/views/users/index.html.erb
138
139
  - test/dummy_app/config/database.yml
139
140
  - test/dummy_app/config/routes.rb
141
+ - test/dummy_app/config/storage.yml
140
142
  - test/dummy_app/init.rb
141
143
  - test/dummy_app/lib/library.rb
142
144
  - test/dummy_app/tmp/.gitkeep
@@ -195,6 +197,7 @@ test_files:
195
197
  - test/dummy_app/app/views/users/index.html.erb
196
198
  - test/dummy_app/config/database.yml
197
199
  - test/dummy_app/config/routes.rb
200
+ - test/dummy_app/config/storage.yml
198
201
  - test/dummy_app/init.rb
199
202
  - test/dummy_app/lib/library.rb
200
203
  - test/dummy_app/tmp/.gitkeep