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 +4 -4
- data/Appraisals +6 -0
- data/CHANGELOG.md +53 -72
- data/gemfiles/rails_v5.1.x.gemfile.lock +1 -1
- data/gemfiles/rails_v5.2.x.gemfile.lock +1 -1
- data/gemfiles/rails_v6.0.x.gemfile.lock +1 -1
- data/gemfiles/rails_v7.0.x.gemfile +9 -0
- data/lib/minitest-spec-rails/init/action_view.rb +3 -1
- data/lib/minitest-spec-rails/railtie.rb +20 -22
- data/lib/minitest-spec-rails/version.rb +1 -1
- data/test/dummy_app/config/storage.yml +34 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41993f64d8b90aa1cc2984e7b50670de5b12f39a86a0a5b646644584308b8dd9
|
4
|
+
data.tar.gz: 6cefc26e1b9a27ff330e1b864e8906fa3ef02ff6c617816af726cef9d20819df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75b4a8ea89bae06a7700068b84473f514b5366567dc134b2cfdc75a4d28af60952e71246cfa56dd631465b9ebaa00a5b42493f173b661cb743e95cdf0c14789e
|
7
|
+
data.tar.gz: fbc2400c04af0ddc2118ff803b85fc32204b6ee4930a4abae9db5c31ff22ab1045629f0ebee3f3b4742f94cb3a7514863193d2ae7918773ca56315d1953299d6
|
data/Appraisals
CHANGED
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
|
-
|
11
|
+
- Fixed parallel tests with relative paths. Thanks @jlsherrill
|
4
12
|
|
5
13
|
## 6.0.3
|
6
14
|
|
7
|
-
|
15
|
+
- Better ActionView load. Fixed #105. Thanks @zofrex
|
8
16
|
|
9
17
|
## 6.0.2
|
10
18
|
|
11
|
-
|
19
|
+
- Fixed parallel tests in Rails v6.
|
12
20
|
|
13
21
|
## 6.0.1
|
14
22
|
|
15
|
-
|
23
|
+
- Changed gemspec to `railties` vs `rails`. Thanks @seuros
|
16
24
|
|
17
25
|
## 6.0.0
|
18
26
|
|
19
|
-
|
27
|
+
- Bumping to be major with latest testing versions.
|
20
28
|
|
21
29
|
## 5.6.0
|
22
30
|
|
23
|
-
|
31
|
+
- Add Rails v6 via gem spec support.
|
24
32
|
|
25
33
|
## 5.5.0
|
26
34
|
|
27
|
-
|
35
|
+
- Fix source_location of methods defined with `test`. Fixes #91. Thanks @barrettkingram
|
28
36
|
|
29
37
|
## 5.4.0
|
30
38
|
|
31
|
-
|
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
|
-
|
43
|
+
- Allow Rails 4.1 to new 5.x to be supported.
|
36
44
|
|
37
45
|
## 5.2.2
|
38
46
|
|
39
|
-
|
47
|
+
- Fix ActiveJob support for `described_class`. Thanks @pschambacher.
|
40
48
|
|
41
49
|
## 5.2.1
|
42
50
|
|
43
|
-
|
51
|
+
- Only add our Thread.current[:current_spec] hack if needed. Fixes #45.
|
44
52
|
|
45
53
|
## 5.2.0
|
46
54
|
|
47
|
-
|
55
|
+
- Added ActiveJob support. Fixes #59. Thanks @xpepermint.
|
48
56
|
|
49
57
|
## 5.1.1
|
50
58
|
|
51
|
-
|
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
|
-
|
61
|
-
|
68
|
+
- Fixed ActiveSupport's Declarative#test forwarded implementation. Fixed #46.
|
62
69
|
|
63
70
|
## 5.0.3
|
64
71
|
|
65
|
-
|
66
|
-
|
72
|
+
- Fixed ActionView load order & url helpers. Fixes #42.
|
67
73
|
|
68
74
|
## 5.0.2
|
69
75
|
|
70
|
-
|
71
|
-
|
76
|
+
- Fixed initialization callbacks for latest Rails 4.1. Fixes #39.
|
72
77
|
|
73
78
|
## 5.0.1
|
74
79
|
|
75
|
-
|
76
|
-
|
80
|
+
- Change initialization so that ActiveSupport always comes first.
|
77
81
|
|
78
82
|
## 5.0.0
|
79
83
|
|
80
|
-
|
81
|
-
|
82
|
-
|
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
|
-
|
88
|
-
|
90
|
+
- Fix nested described test names. Fixes #21.
|
89
91
|
|
90
92
|
## 4.7.5
|
91
93
|
|
92
|
-
|
93
|
-
|
94
|
+
- Fixed gemspec using '>= 3.0', '< 4.1'. Fixed #35.
|
94
95
|
|
95
96
|
## 4.7.4
|
96
97
|
|
97
|
-
|
98
|
-
|
98
|
+
- Enforces case sensitivity on registered spec types. Fixes #26.
|
99
99
|
|
100
100
|
## 4.7.3
|
101
101
|
|
102
|
-
|
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
|
-
|
108
|
-
|
106
|
+
- Register non ActiveRecord::Base classes correctly. Thanks @mptre.
|
109
107
|
|
110
108
|
## 4.7.1
|
111
109
|
|
112
|
-
|
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
|
-
|
118
|
-
|
114
|
+
- Use Minitest::Spec::DSL provided by Minitest 4.7.
|
119
115
|
|
120
116
|
## 4.3.8
|
121
117
|
|
122
|
-
|
123
|
-
|
118
|
+
- Less coupling to ActiveRecord ORM, works for MongoDB now. Thanks @kimsuelim
|
124
119
|
|
125
120
|
## v4.3.7
|
126
121
|
|
127
|
-
|
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
|
-
|
133
|
-
|
126
|
+
- Only require the freedom patches and autorun when Rails.env.test?
|
134
127
|
|
135
128
|
## v4.3.5
|
136
129
|
|
137
|
-
|
138
|
-
|
130
|
+
- Make sure #described_class works in ActiveSupport::TestCase class level.
|
139
131
|
|
140
132
|
## v4.3.4
|
141
133
|
|
142
|
-
|
143
|
-
|
134
|
+
- Add mini_should support and talk about matchers.
|
144
135
|
|
145
136
|
## v4.3.3
|
146
137
|
|
147
|
-
|
148
|
-
|
138
|
+
- Fix MiniTest::Unit::TestCase hack for Rails 4, ignore in Rails 3.
|
149
139
|
|
150
140
|
## v4.3.2
|
151
141
|
|
152
|
-
|
153
|
-
|
142
|
+
- Way better support for controller_class, mailer_class, and helper_class reflection.
|
154
143
|
|
155
144
|
## v4.3.1
|
156
145
|
|
157
|
-
|
158
|
-
|
146
|
+
- Eager load controller_class, mailer_class, and helper_class.
|
159
147
|
|
160
148
|
## v4.3.0
|
161
149
|
|
162
|
-
|
163
|
-
|
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
|
-
|
169
|
-
|
155
|
+
- Must use MiniTest version ~> 2.1. As 3.x will not work.
|
170
156
|
|
171
157
|
## v3.0.6
|
172
158
|
|
173
|
-
|
174
|
-
|
159
|
+
- Use #constantize vs. #safe_constantize for Rails 3.0 compatability.
|
175
160
|
|
176
161
|
## v3.0.5
|
177
162
|
|
178
|
-
|
179
|
-
|
163
|
+
- Use ActionController::IntegrationTest vs. ActionDispatch::IntegrationTest
|
180
164
|
|
181
165
|
## v3.0.4
|
182
166
|
|
183
|
-
|
184
|
-
|
167
|
+
- Use class app setter for integration tests.
|
185
168
|
|
186
169
|
## v3.0.3
|
187
170
|
|
188
|
-
|
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
|
-
|
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
|
-
|
180
|
+
- Add rails to the gemspec.
|
200
181
|
|
201
182
|
## v3.0.0
|
202
183
|
|
203
|
-
|
184
|
+
- Initial Release, targeted to Rails 3.x.
|
@@ -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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
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
|
-
|
30
|
-
|
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
|
@@ -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
|
+
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:
|
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
|