minitest-spec-rails 6.0.4 → 6.1.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: a822dd4545199db4b739fcdce3cd6f37ba52b33ee2003b35c0e38a454beb2d95
4
- data.tar.gz: 7862edf7f6a40838e622e2b1f6eba095df42f760f257ae71df5b5bf06e4bf7ee
3
+ metadata.gz: 7ea5d94b6b919f097df9a0752e3134728d468e6d6be5048c1d54fe2fe93af229
4
+ data.tar.gz: 5e13bb3801194286492d2262354f9c3f3e9d4c349f832ffc0ee894b3fcfbf75e
5
5
  SHA512:
6
- metadata.gz: fe7c82452120cd6c56f409d4b0270da309b07edd7fe37267c033491df703434f693a5d46d675e9ff8b837a7b5077a3a116b20ca5d3ef2f10edc3d97a4df48566
7
- data.tar.gz: d0ad9ced0e0fbe397973fd28c57fa42b86f15b9a8ea368bd63a45128b1d812aa19fd8f6002d4eb0b9da0423e7e481837ed9c2340218e17e5bbfd6f2588fe6be8
6
+ metadata.gz: d8603d5bac134d1e626dd7bff373b7a04d701a88773f0170534e182cc93f5e5e66191e43bfc21f143f3fae8382b48c72e32d9f509e0132ccef862e36360eb500
7
+ data.tar.gz: 14a5eefc0cfe12707f124bc0016d9c54eed9b6bc0569bbf6204aa993f88fc0405422b6dbcc7261081ee235daa2a5627f509e9011302820a3f83d3324cb57b0da
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,58 @@
1
+ ## 6.1.0
2
+
3
+ - Fix Rails v7 autoloading with ViewComponent. Thanks @woller
4
+
1
5
  ## 6.0.4
2
6
 
3
- * Fixed parallel tests with relative paths. Thanks @jlsherrill
7
+ - Fixed parallel tests with relative paths. Thanks @jlsherrill
4
8
 
5
9
  ## 6.0.3
6
10
 
7
- * Better ActionView load. Fixed #105. Thanks @zofrex
11
+ - Better ActionView load. Fixed #105. Thanks @zofrex
8
12
 
9
13
  ## 6.0.2
10
14
 
11
- * Fixed parallel tests in Rails v6.
15
+ - Fixed parallel tests in Rails v6.
12
16
 
13
17
  ## 6.0.1
14
18
 
15
- * Changed gemspec to `railties` vs `rails`. Thanks @seuros
19
+ - Changed gemspec to `railties` vs `rails`. Thanks @seuros
16
20
 
17
21
  ## 6.0.0
18
22
 
19
- * Bumping to be major with latest testing versions.
23
+ - Bumping to be major with latest testing versions.
20
24
 
21
25
  ## 5.6.0
22
26
 
23
- * Add Rails v6 via gem spec support.
27
+ - Add Rails v6 via gem spec support.
24
28
 
25
29
  ## 5.5.0
26
30
 
27
- * Fix source_location of methods defined with `test`. Fixes #91. Thanks @barrettkingram
31
+ - Fix source_location of methods defined with `test`. Fixes #91. Thanks @barrettkingram
28
32
 
29
33
  ## 5.4.0
30
34
 
31
- * Use ENV['RAILS_ENV'] for initializer guards vs memo'ed Rails.env. Fixes #72.
35
+ - Use ENV['RAILS_ENV'] for initializer guards vs memo'ed Rails.env. Fixes #72.
32
36
 
33
37
  ## 5.3.0
34
38
 
35
- * Allow Rails 4.1 to new 5.x to be supported.
39
+ - Allow Rails 4.1 to new 5.x to be supported.
36
40
 
37
41
  ## 5.2.2
38
42
 
39
- * Fix ActiveJob support for `described_class`. Thanks @pschambacher.
43
+ - Fix ActiveJob support for `described_class`. Thanks @pschambacher.
40
44
 
41
45
  ## 5.2.1
42
46
 
43
- * Only add our Thread.current[:current_spec] hack if needed. Fixes #45.
47
+ - Only add our Thread.current[:current_spec] hack if needed. Fixes #45.
44
48
 
45
49
  ## 5.2.0
46
50
 
47
- * Added ActiveJob support. Fixes #59. Thanks @xpepermint.
51
+ - Added ActiveJob support. Fixes #59. Thanks @xpepermint.
48
52
 
49
53
  ## 5.1.1
50
54
 
51
- * Fix an issue where `describe` method was removed. Fixes #55 & #50
55
+ - Fix an issue where `describe` method was removed. Fixes #55 & #50
52
56
  [41a0f851](https://github.com/metaskills/minitest-spec-rails/commit/41a0f851c8a290f59feb1cb8b20759f0e2a9697a)
53
57
 
54
58
  ## 5.1.0
@@ -57,147 +61,120 @@ No release notes yet. PRs welcome!
57
61
 
58
62
  ## 5.0.4
59
63
 
60
- * Fixed ActiveSupport's Declarative#test forwarded implementation. Fixed #46.
61
-
64
+ - Fixed ActiveSupport's Declarative#test forwarded implementation. Fixed #46.
62
65
 
63
66
  ## 5.0.3
64
67
 
65
- * Fixed ActionView load order & url helpers. Fixes #42.
66
-
68
+ - Fixed ActionView load order & url helpers. Fixes #42.
67
69
 
68
70
  ## 5.0.2
69
71
 
70
- * Fixed initialization callbacks for latest Rails 4.1. Fixes #39.
71
-
72
+ - Fixed initialization callbacks for latest Rails 4.1. Fixes #39.
72
73
 
73
74
  ## 5.0.1
74
75
 
75
- * Change initialization so that ActiveSupport always comes first.
76
-
76
+ - Change initialization so that ActiveSupport always comes first.
77
77
 
78
78
  ## 5.0.0
79
79
 
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
-
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.
84
83
 
85
84
  ## 4.7.6
86
85
 
87
- * Fix nested described test names. Fixes #21.
88
-
86
+ - Fix nested described test names. Fixes #21.
89
87
 
90
88
  ## 4.7.5
91
89
 
92
- * Fixed gemspec using '>= 3.0', '< 4.1'. Fixed #35.
93
-
90
+ - Fixed gemspec using '>= 3.0', '< 4.1'. Fixed #35.
94
91
 
95
92
  ## 4.7.4
96
93
 
97
- * Enforces case sensitivity on registered spec types. Fixes #26.
98
-
94
+ - Enforces case sensitivity on registered spec types. Fixes #26.
99
95
 
100
96
  ## 4.7.3
101
97
 
102
- * Allow using ActiveSupport's Declarative#test as an alias to it. Thanks @ysbaddaden. Fixes #23.
103
-
98
+ - Allow using ActiveSupport's Declarative#test as an alias to it. Thanks @ysbaddaden. Fixes #23.
104
99
 
105
100
  ## 4.7.2
106
101
 
107
- * Register non ActiveRecord::Base classes correctly. Thanks @mptre.
108
-
102
+ - Register non ActiveRecord::Base classes correctly. Thanks @mptre.
109
103
 
110
104
  ## 4.7.1
111
105
 
112
- * Only use a TU shim for Ruby 1.8. See README for info. Fixes #18.
113
-
106
+ - Only use a TU shim for Ruby 1.8. See README for info. Fixes #18.
114
107
 
115
108
  ## 4.7.0
116
109
 
117
- * Use Minitest::Spec::DSL provided by Minitest 4.7.
118
-
110
+ - Use Minitest::Spec::DSL provided by Minitest 4.7.
119
111
 
120
112
  ## 4.3.8
121
113
 
122
- * Less coupling to ActiveRecord ORM, works for MongoDB now. Thanks @kimsuelim
123
-
114
+ - Less coupling to ActiveRecord ORM, works for MongoDB now. Thanks @kimsuelim
124
115
 
125
116
  ## v4.3.7
126
117
 
127
- * Fix helper test bug where calling methods in first context block blew up. Fixes #13.
128
-
118
+ - Fix helper test bug where calling methods in first context block blew up. Fixes #13.
129
119
 
130
120
  ## v4.3.6
131
121
 
132
- * Only require the freedom patches and autorun when Rails.env.test?
133
-
122
+ - Only require the freedom patches and autorun when Rails.env.test?
134
123
 
135
124
  ## v4.3.5
136
125
 
137
- * Make sure #described_class works in ActiveSupport::TestCase class level.
138
-
126
+ - Make sure #described_class works in ActiveSupport::TestCase class level.
139
127
 
140
128
  ## v4.3.4
141
129
 
142
- * Add mini_should support and talk about matchers.
143
-
130
+ - Add mini_should support and talk about matchers.
144
131
 
145
132
  ## v4.3.3
146
133
 
147
- * Fix MiniTest::Unit::TestCase hack for Rails 4, ignore in Rails 3.
148
-
134
+ - Fix MiniTest::Unit::TestCase hack for Rails 4, ignore in Rails 3.
149
135
 
150
136
  ## v4.3.2
151
137
 
152
- * Way better support for controller_class, mailer_class, and helper_class reflection.
153
-
138
+ - Way better support for controller_class, mailer_class, and helper_class reflection.
154
139
 
155
140
  ## v4.3.1
156
141
 
157
- * Eager load controller_class, mailer_class, and helper_class.
158
-
142
+ - Eager load controller_class, mailer_class, and helper_class.
159
143
 
160
144
  ## v4.3.0
161
145
 
162
- * All new MiniTest::Spec for Rails!!! Tested to the hilt!!!
163
- * Track MiniTest's major/minior version number.
164
-
146
+ - All new MiniTest::Spec for Rails!!! Tested to the hilt!!!
147
+ - Track MiniTest's major/minior version number.
165
148
 
166
149
  ## v3.0.7
167
150
 
168
- * Must use MiniTest version ~> 2.1. As 3.x will not work.
169
-
151
+ - Must use MiniTest version ~> 2.1. As 3.x will not work.
170
152
 
171
153
  ## v3.0.6
172
154
 
173
- * Use #constantize vs. #safe_constantize for Rails 3.0 compatability.
174
-
155
+ - Use #constantize vs. #safe_constantize for Rails 3.0 compatability.
175
156
 
176
157
  ## v3.0.5
177
158
 
178
- * Use ActionController::IntegrationTest vs. ActionDispatch::IntegrationTest
179
-
159
+ - Use ActionController::IntegrationTest vs. ActionDispatch::IntegrationTest
180
160
 
181
161
  ## v3.0.4
182
162
 
183
- * Use class app setter for integration tests.
184
-
163
+ - Use class app setter for integration tests.
185
164
 
186
165
  ## v3.0.3
187
166
 
188
- * Stronger test case organization where we properly setup functional and integraiton tests
167
+ - Stronger test case organization where we properly setup functional and integraiton tests
189
168
  while also allowing an alternate pure MiniTest::Spec outter file describe block. [Jack Chu]
190
169
 
191
-
192
170
  ## v3.0.2
193
171
 
194
- * Remove version deps on minitest since v3 is out. Should work with any v2/3 version.
195
-
172
+ - Remove version deps on minitest since v3 is out. Should work with any v2/3 version.
196
173
 
197
174
  ## v3.0.1
198
175
 
199
- * Add rails to the gemspec.
176
+ - Add rails to the gemspec.
200
177
 
201
178
  ## v3.0.0
202
179
 
203
- * Initial Release, targeted to Rails 3.x.
180
+ - 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
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = '6.0.4'.freeze
2
+ VERSION = '6.1.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.1.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: 2021-11-02 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