minitest-spec-rails 6.0.1 → 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 +4 -4
- data/.github/workflows/ci.yml +4 -3
- data/Appraisals +6 -0
- data/CHANGELOG.md +58 -69
- data/README.md +1 -1
- data/gemfiles/rails_v5.1.x.gemfile.lock +24 -22
- data/gemfiles/rails_v5.2.x.gemfile.lock +65 -65
- data/gemfiles/rails_v6.0.x.gemfile.lock +81 -81
- 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/parallelize.rb +30 -0
- data/lib/minitest-spec-rails/railtie.rb +4 -1
- data/lib/minitest-spec-rails/version.rb +1 -1
- data/test/dummy_app/config/storage.yml +34 -0
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ea5d94b6b919f097df9a0752e3134728d468e6d6be5048c1d54fe2fe93af229
|
4
|
+
data.tar.gz: 5e13bb3801194286492d2262354f9c3f3e9d4c349f832ffc0ee894b3fcfbf75e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8603d5bac134d1e626dd7bff373b7a04d701a88773f0170534e182cc93f5e5e66191e43bfc21f143f3fae8382b48c72e32d9f509e0132ccef862e36360eb500
|
7
|
+
data.tar.gz: 14a5eefc0cfe12707f124bc0016d9c54eed9b6bc0569bbf6204aa993f88fc0405422b6dbcc7261081ee235daa2a5627f509e9011302820a3f83d3324cb57b0da
|
data/.github/workflows/ci.yml
CHANGED
@@ -18,17 +18,18 @@ jobs:
|
|
18
18
|
- name: Setup System
|
19
19
|
run: |
|
20
20
|
sudo apt-get install libsqlite3-dev
|
21
|
+
echo "MTSR_RAILS_VERSION=${{ matrix.rails }}" >> $GITHUB_ENV
|
21
22
|
- name: Setup Ruby
|
22
23
|
uses: actions/setup-ruby@v1
|
23
24
|
with:
|
24
25
|
ruby-version: ${{ matrix.ruby }}
|
25
26
|
- name: Bundle
|
26
|
-
env:
|
27
|
-
MTSR_RAILS_VERSION: ${{ matrix.rails }}
|
28
27
|
run: |
|
29
28
|
export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/${MTSR_RAILS_VERSION}.gemfile"
|
30
29
|
gem uninstall -aIx bundler
|
31
30
|
gem install bundler -v 1.17.3
|
32
31
|
bundle install --jobs 4 --retry 3
|
33
32
|
- name: Test
|
34
|
-
run:
|
33
|
+
run: |
|
34
|
+
export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/${MTSR_RAILS_VERSION}.gemfile"
|
35
|
+
bundle exec rake
|
data/Appraisals
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,42 +1,58 @@
|
|
1
|
+
## 6.1.0
|
2
|
+
|
3
|
+
- Fix Rails v7 autoloading with ViewComponent. Thanks @woller
|
4
|
+
|
5
|
+
## 6.0.4
|
6
|
+
|
7
|
+
- Fixed parallel tests with relative paths. Thanks @jlsherrill
|
8
|
+
|
9
|
+
## 6.0.3
|
10
|
+
|
11
|
+
- Better ActionView load. Fixed #105. Thanks @zofrex
|
12
|
+
|
13
|
+
## 6.0.2
|
14
|
+
|
15
|
+
- Fixed parallel tests in Rails v6.
|
16
|
+
|
1
17
|
## 6.0.1
|
2
18
|
|
3
|
-
|
19
|
+
- Changed gemspec to `railties` vs `rails`. Thanks @seuros
|
4
20
|
|
5
21
|
## 6.0.0
|
6
22
|
|
7
|
-
|
23
|
+
- Bumping to be major with latest testing versions.
|
8
24
|
|
9
25
|
## 5.6.0
|
10
26
|
|
11
|
-
|
27
|
+
- Add Rails v6 via gem spec support.
|
12
28
|
|
13
29
|
## 5.5.0
|
14
30
|
|
15
|
-
|
31
|
+
- Fix source_location of methods defined with `test`. Fixes #91. Thanks @barrettkingram
|
16
32
|
|
17
33
|
## 5.4.0
|
18
34
|
|
19
|
-
|
35
|
+
- Use ENV['RAILS_ENV'] for initializer guards vs memo'ed Rails.env. Fixes #72.
|
20
36
|
|
21
37
|
## 5.3.0
|
22
38
|
|
23
|
-
|
39
|
+
- Allow Rails 4.1 to new 5.x to be supported.
|
24
40
|
|
25
41
|
## 5.2.2
|
26
42
|
|
27
|
-
|
43
|
+
- Fix ActiveJob support for `described_class`. Thanks @pschambacher.
|
28
44
|
|
29
45
|
## 5.2.1
|
30
46
|
|
31
|
-
|
47
|
+
- Only add our Thread.current[:current_spec] hack if needed. Fixes #45.
|
32
48
|
|
33
49
|
## 5.2.0
|
34
50
|
|
35
|
-
|
51
|
+
- Added ActiveJob support. Fixes #59. Thanks @xpepermint.
|
36
52
|
|
37
53
|
## 5.1.1
|
38
54
|
|
39
|
-
|
55
|
+
- Fix an issue where `describe` method was removed. Fixes #55 & #50
|
40
56
|
[41a0f851](https://github.com/metaskills/minitest-spec-rails/commit/41a0f851c8a290f59feb1cb8b20759f0e2a9697a)
|
41
57
|
|
42
58
|
## 5.1.0
|
@@ -45,147 +61,120 @@ No release notes yet. PRs welcome!
|
|
45
61
|
|
46
62
|
## 5.0.4
|
47
63
|
|
48
|
-
|
49
|
-
|
64
|
+
- Fixed ActiveSupport's Declarative#test forwarded implementation. Fixed #46.
|
50
65
|
|
51
66
|
## 5.0.3
|
52
67
|
|
53
|
-
|
54
|
-
|
68
|
+
- Fixed ActionView load order & url helpers. Fixes #42.
|
55
69
|
|
56
70
|
## 5.0.2
|
57
71
|
|
58
|
-
|
59
|
-
|
72
|
+
- Fixed initialization callbacks for latest Rails 4.1. Fixes #39.
|
60
73
|
|
61
74
|
## 5.0.1
|
62
75
|
|
63
|
-
|
64
|
-
|
76
|
+
- Change initialization so that ActiveSupport always comes first.
|
65
77
|
|
66
78
|
## 5.0.0
|
67
79
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
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.
|
72
83
|
|
73
84
|
## 4.7.6
|
74
85
|
|
75
|
-
|
76
|
-
|
86
|
+
- Fix nested described test names. Fixes #21.
|
77
87
|
|
78
88
|
## 4.7.5
|
79
89
|
|
80
|
-
|
81
|
-
|
90
|
+
- Fixed gemspec using '>= 3.0', '< 4.1'. Fixed #35.
|
82
91
|
|
83
92
|
## 4.7.4
|
84
93
|
|
85
|
-
|
86
|
-
|
94
|
+
- Enforces case sensitivity on registered spec types. Fixes #26.
|
87
95
|
|
88
96
|
## 4.7.3
|
89
97
|
|
90
|
-
|
91
|
-
|
98
|
+
- Allow using ActiveSupport's Declarative#test as an alias to it. Thanks @ysbaddaden. Fixes #23.
|
92
99
|
|
93
100
|
## 4.7.2
|
94
101
|
|
95
|
-
|
96
|
-
|
102
|
+
- Register non ActiveRecord::Base classes correctly. Thanks @mptre.
|
97
103
|
|
98
104
|
## 4.7.1
|
99
105
|
|
100
|
-
|
101
|
-
|
106
|
+
- Only use a TU shim for Ruby 1.8. See README for info. Fixes #18.
|
102
107
|
|
103
108
|
## 4.7.0
|
104
109
|
|
105
|
-
|
106
|
-
|
110
|
+
- Use Minitest::Spec::DSL provided by Minitest 4.7.
|
107
111
|
|
108
112
|
## 4.3.8
|
109
113
|
|
110
|
-
|
111
|
-
|
114
|
+
- Less coupling to ActiveRecord ORM, works for MongoDB now. Thanks @kimsuelim
|
112
115
|
|
113
116
|
## v4.3.7
|
114
117
|
|
115
|
-
|
116
|
-
|
118
|
+
- Fix helper test bug where calling methods in first context block blew up. Fixes #13.
|
117
119
|
|
118
120
|
## v4.3.6
|
119
121
|
|
120
|
-
|
121
|
-
|
122
|
+
- Only require the freedom patches and autorun when Rails.env.test?
|
122
123
|
|
123
124
|
## v4.3.5
|
124
125
|
|
125
|
-
|
126
|
-
|
126
|
+
- Make sure #described_class works in ActiveSupport::TestCase class level.
|
127
127
|
|
128
128
|
## v4.3.4
|
129
129
|
|
130
|
-
|
131
|
-
|
130
|
+
- Add mini_should support and talk about matchers.
|
132
131
|
|
133
132
|
## v4.3.3
|
134
133
|
|
135
|
-
|
136
|
-
|
134
|
+
- Fix MiniTest::Unit::TestCase hack for Rails 4, ignore in Rails 3.
|
137
135
|
|
138
136
|
## v4.3.2
|
139
137
|
|
140
|
-
|
141
|
-
|
138
|
+
- Way better support for controller_class, mailer_class, and helper_class reflection.
|
142
139
|
|
143
140
|
## v4.3.1
|
144
141
|
|
145
|
-
|
146
|
-
|
142
|
+
- Eager load controller_class, mailer_class, and helper_class.
|
147
143
|
|
148
144
|
## v4.3.0
|
149
145
|
|
150
|
-
|
151
|
-
|
152
|
-
|
146
|
+
- All new MiniTest::Spec for Rails!!! Tested to the hilt!!!
|
147
|
+
- Track MiniTest's major/minior version number.
|
153
148
|
|
154
149
|
## v3.0.7
|
155
150
|
|
156
|
-
|
157
|
-
|
151
|
+
- Must use MiniTest version ~> 2.1. As 3.x will not work.
|
158
152
|
|
159
153
|
## v3.0.6
|
160
154
|
|
161
|
-
|
162
|
-
|
155
|
+
- Use #constantize vs. #safe_constantize for Rails 3.0 compatability.
|
163
156
|
|
164
157
|
## v3.0.5
|
165
158
|
|
166
|
-
|
167
|
-
|
159
|
+
- Use ActionController::IntegrationTest vs. ActionDispatch::IntegrationTest
|
168
160
|
|
169
161
|
## v3.0.4
|
170
162
|
|
171
|
-
|
172
|
-
|
163
|
+
- Use class app setter for integration tests.
|
173
164
|
|
174
165
|
## v3.0.3
|
175
166
|
|
176
|
-
|
167
|
+
- Stronger test case organization where we properly setup functional and integraiton tests
|
177
168
|
while also allowing an alternate pure MiniTest::Spec outter file describe block. [Jack Chu]
|
178
169
|
|
179
|
-
|
180
170
|
## v3.0.2
|
181
171
|
|
182
|
-
|
183
|
-
|
172
|
+
- Remove version deps on minitest since v3 is out. Should work with any v2/3 version.
|
184
173
|
|
185
174
|
## v3.0.1
|
186
175
|
|
187
|
-
|
176
|
+
- Add rails to the gemspec.
|
188
177
|
|
189
178
|
## v3.0.0
|
190
179
|
|
191
|
-
|
180
|
+
- Initial Release, targeted to Rails 3.x.
|
data/README.md
CHANGED
@@ -56,7 +56,7 @@ gem 'minitest-spec-rails'
|
|
56
56
|
|
57
57
|
## Test Styles
|
58
58
|
|
59
|
-
This <a href="
|
59
|
+
This <a href="https://chriskottom.com/freebies/cheatsheets_free.pdf">cheat sheet</a> shows both the MiniTest::Unit assertions along with the MiniTest::Spec assertion syntax. Remember, MiniTest::Spec is built on top of MiniTest::Unit which is a Test::Unit replacement. That means you can mix and match styles as you upgrade from Test::Unit to a more modern style. For example, both of these would work in MiniTest::Spec and are interchangeable.
|
60
60
|
|
61
61
|
```ruby
|
62
62
|
# MiniTest::Unit Assertion Style:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
minitest-spec-rails (6.0
|
4
|
+
minitest-spec-rails (6.1.0)
|
5
5
|
minitest (>= 5.0)
|
6
6
|
railties (>= 4.1)
|
7
7
|
|
@@ -45,32 +45,34 @@ GEM
|
|
45
45
|
i18n (>= 0.7, < 2)
|
46
46
|
minitest (~> 5.1)
|
47
47
|
tzinfo (~> 1.1)
|
48
|
-
appraisal (2.
|
48
|
+
appraisal (2.4.0)
|
49
49
|
bundler
|
50
50
|
rake
|
51
51
|
thor (>= 0.14.0)
|
52
52
|
arel (8.0.0)
|
53
|
-
builder (3.2.
|
54
|
-
concurrent-ruby (1.1.
|
55
|
-
crass (1.0.
|
56
|
-
erubi (1.
|
53
|
+
builder (3.2.4)
|
54
|
+
concurrent-ruby (1.1.8)
|
55
|
+
crass (1.0.6)
|
56
|
+
erubi (1.10.0)
|
57
57
|
globalid (0.4.2)
|
58
58
|
activesupport (>= 4.2.0)
|
59
|
-
i18n (1.
|
59
|
+
i18n (1.8.10)
|
60
60
|
concurrent-ruby (~> 1.0)
|
61
|
-
loofah (2.
|
61
|
+
loofah (2.9.1)
|
62
62
|
crass (~> 1.0.2)
|
63
63
|
nokogiri (>= 1.5.9)
|
64
64
|
mail (2.7.1)
|
65
65
|
mini_mime (>= 0.1.1)
|
66
|
-
method_source (0.
|
67
|
-
mini_mime (1.0
|
68
|
-
mini_portile2 (2.
|
66
|
+
method_source (1.0.0)
|
67
|
+
mini_mime (1.1.0)
|
68
|
+
mini_portile2 (2.5.1)
|
69
69
|
minitest (5.10.1)
|
70
|
-
nio4r (2.5.
|
71
|
-
nokogiri (1.
|
72
|
-
mini_portile2 (~> 2.
|
73
|
-
|
70
|
+
nio4r (2.5.7)
|
71
|
+
nokogiri (1.11.3)
|
72
|
+
mini_portile2 (~> 2.5.0)
|
73
|
+
racc (~> 1.4)
|
74
|
+
racc (1.5.2)
|
75
|
+
rack (2.2.3)
|
74
76
|
rack-test (1.1.0)
|
75
77
|
rack (>= 1.0, < 3)
|
76
78
|
rails (5.1.7)
|
@@ -96,22 +98,22 @@ GEM
|
|
96
98
|
method_source
|
97
99
|
rake (>= 0.8.7)
|
98
100
|
thor (>= 0.18.1, < 2.0)
|
99
|
-
rake (13.0.
|
100
|
-
sprockets (4.0.
|
101
|
+
rake (13.0.3)
|
102
|
+
sprockets (4.0.2)
|
101
103
|
concurrent-ruby (~> 1.0)
|
102
104
|
rack (> 1, < 3)
|
103
|
-
sprockets-rails (3.2.
|
105
|
+
sprockets-rails (3.2.2)
|
104
106
|
actionpack (>= 4.0)
|
105
107
|
activesupport (>= 4.0)
|
106
108
|
sprockets (>= 3.0.0)
|
107
|
-
sqlite3 (1.4.
|
108
|
-
thor (
|
109
|
+
sqlite3 (1.4.2)
|
110
|
+
thor (1.1.0)
|
109
111
|
thread_safe (0.3.6)
|
110
|
-
tzinfo (1.2.
|
112
|
+
tzinfo (1.2.9)
|
111
113
|
thread_safe (~> 0.1)
|
112
114
|
websocket-driver (0.6.5)
|
113
115
|
websocket-extensions (>= 0.1.0)
|
114
|
-
websocket-extensions (0.1.
|
116
|
+
websocket-extensions (0.1.5)
|
115
117
|
|
116
118
|
PLATFORMS
|
117
119
|
ruby
|
@@ -1,125 +1,125 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
minitest-spec-rails (6.0
|
4
|
+
minitest-spec-rails (6.1.0)
|
5
5
|
minitest (>= 5.0)
|
6
6
|
railties (>= 4.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (5.2.
|
12
|
-
actionpack (= 5.2.
|
11
|
+
actioncable (5.2.5)
|
12
|
+
actionpack (= 5.2.5)
|
13
13
|
nio4r (~> 2.0)
|
14
14
|
websocket-driver (>= 0.6.1)
|
15
|
-
actionmailer (5.2.
|
16
|
-
actionpack (= 5.2.
|
17
|
-
actionview (= 5.2.
|
18
|
-
activejob (= 5.2.
|
15
|
+
actionmailer (5.2.5)
|
16
|
+
actionpack (= 5.2.5)
|
17
|
+
actionview (= 5.2.5)
|
18
|
+
activejob (= 5.2.5)
|
19
19
|
mail (~> 2.5, >= 2.5.4)
|
20
20
|
rails-dom-testing (~> 2.0)
|
21
|
-
actionpack (5.2.
|
22
|
-
actionview (= 5.2.
|
23
|
-
activesupport (= 5.2.
|
24
|
-
rack (~> 2.0)
|
21
|
+
actionpack (5.2.5)
|
22
|
+
actionview (= 5.2.5)
|
23
|
+
activesupport (= 5.2.5)
|
24
|
+
rack (~> 2.0, >= 2.0.8)
|
25
25
|
rack-test (>= 0.6.3)
|
26
26
|
rails-dom-testing (~> 2.0)
|
27
27
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
28
|
-
actionview (5.2.
|
29
|
-
activesupport (= 5.2.
|
28
|
+
actionview (5.2.5)
|
29
|
+
activesupport (= 5.2.5)
|
30
30
|
builder (~> 3.1)
|
31
31
|
erubi (~> 1.4)
|
32
32
|
rails-dom-testing (~> 2.0)
|
33
33
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
34
|
-
activejob (5.2.
|
35
|
-
activesupport (= 5.2.
|
34
|
+
activejob (5.2.5)
|
35
|
+
activesupport (= 5.2.5)
|
36
36
|
globalid (>= 0.3.6)
|
37
|
-
activemodel (5.2.
|
38
|
-
activesupport (= 5.2.
|
39
|
-
activerecord (5.2.
|
40
|
-
activemodel (= 5.2.
|
41
|
-
activesupport (= 5.2.
|
37
|
+
activemodel (5.2.5)
|
38
|
+
activesupport (= 5.2.5)
|
39
|
+
activerecord (5.2.5)
|
40
|
+
activemodel (= 5.2.5)
|
41
|
+
activesupport (= 5.2.5)
|
42
42
|
arel (>= 9.0)
|
43
|
-
activestorage (5.2.
|
44
|
-
actionpack (= 5.2.
|
45
|
-
activerecord (= 5.2.
|
46
|
-
marcel (~> 0.
|
47
|
-
activesupport (5.2.
|
43
|
+
activestorage (5.2.5)
|
44
|
+
actionpack (= 5.2.5)
|
45
|
+
activerecord (= 5.2.5)
|
46
|
+
marcel (~> 1.0.0)
|
47
|
+
activesupport (5.2.5)
|
48
48
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
49
49
|
i18n (>= 0.7, < 2)
|
50
50
|
minitest (~> 5.1)
|
51
51
|
tzinfo (~> 1.1)
|
52
|
-
appraisal (2.
|
52
|
+
appraisal (2.4.0)
|
53
53
|
bundler
|
54
54
|
rake
|
55
55
|
thor (>= 0.14.0)
|
56
56
|
arel (9.0.0)
|
57
|
-
builder (3.2.
|
58
|
-
concurrent-ruby (1.1.
|
59
|
-
crass (1.0.
|
60
|
-
erubi (1.
|
57
|
+
builder (3.2.4)
|
58
|
+
concurrent-ruby (1.1.8)
|
59
|
+
crass (1.0.6)
|
60
|
+
erubi (1.10.0)
|
61
61
|
globalid (0.4.2)
|
62
62
|
activesupport (>= 4.2.0)
|
63
|
-
i18n (1.
|
63
|
+
i18n (1.8.10)
|
64
64
|
concurrent-ruby (~> 1.0)
|
65
|
-
loofah (2.
|
65
|
+
loofah (2.9.1)
|
66
66
|
crass (~> 1.0.2)
|
67
67
|
nokogiri (>= 1.5.9)
|
68
68
|
mail (2.7.1)
|
69
69
|
mini_mime (>= 0.1.1)
|
70
|
-
marcel (0.
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
rack (2.
|
70
|
+
marcel (1.0.1)
|
71
|
+
method_source (1.0.0)
|
72
|
+
mini_mime (1.1.0)
|
73
|
+
mini_portile2 (2.5.1)
|
74
|
+
minitest (5.14.4)
|
75
|
+
nio4r (2.5.7)
|
76
|
+
nokogiri (1.11.3)
|
77
|
+
mini_portile2 (~> 2.5.0)
|
78
|
+
racc (~> 1.4)
|
79
|
+
racc (1.5.2)
|
80
|
+
rack (2.2.3)
|
81
81
|
rack-test (1.1.0)
|
82
82
|
rack (>= 1.0, < 3)
|
83
|
-
rails (5.2.
|
84
|
-
actioncable (= 5.2.
|
85
|
-
actionmailer (= 5.2.
|
86
|
-
actionpack (= 5.2.
|
87
|
-
actionview (= 5.2.
|
88
|
-
activejob (= 5.2.
|
89
|
-
activemodel (= 5.2.
|
90
|
-
activerecord (= 5.2.
|
91
|
-
activestorage (= 5.2.
|
92
|
-
activesupport (= 5.2.
|
83
|
+
rails (5.2.5)
|
84
|
+
actioncable (= 5.2.5)
|
85
|
+
actionmailer (= 5.2.5)
|
86
|
+
actionpack (= 5.2.5)
|
87
|
+
actionview (= 5.2.5)
|
88
|
+
activejob (= 5.2.5)
|
89
|
+
activemodel (= 5.2.5)
|
90
|
+
activerecord (= 5.2.5)
|
91
|
+
activestorage (= 5.2.5)
|
92
|
+
activesupport (= 5.2.5)
|
93
93
|
bundler (>= 1.3.0)
|
94
|
-
railties (= 5.2.
|
94
|
+
railties (= 5.2.5)
|
95
95
|
sprockets-rails (>= 2.0.0)
|
96
96
|
rails-dom-testing (2.0.3)
|
97
97
|
activesupport (>= 4.2.0)
|
98
98
|
nokogiri (>= 1.6)
|
99
99
|
rails-html-sanitizer (1.3.0)
|
100
100
|
loofah (~> 2.3)
|
101
|
-
railties (5.2.
|
102
|
-
actionpack (= 5.2.
|
103
|
-
activesupport (= 5.2.
|
101
|
+
railties (5.2.5)
|
102
|
+
actionpack (= 5.2.5)
|
103
|
+
activesupport (= 5.2.5)
|
104
104
|
method_source
|
105
105
|
rake (>= 0.8.7)
|
106
106
|
thor (>= 0.19.0, < 2.0)
|
107
|
-
rake (13.0.
|
108
|
-
sprockets (4.0.
|
107
|
+
rake (13.0.3)
|
108
|
+
sprockets (4.0.2)
|
109
109
|
concurrent-ruby (~> 1.0)
|
110
110
|
rack (> 1, < 3)
|
111
|
-
sprockets-rails (3.2.
|
111
|
+
sprockets-rails (3.2.2)
|
112
112
|
actionpack (>= 4.0)
|
113
113
|
activesupport (>= 4.0)
|
114
114
|
sprockets (>= 3.0.0)
|
115
|
-
sqlite3 (1.4.
|
116
|
-
thor (
|
115
|
+
sqlite3 (1.4.2)
|
116
|
+
thor (1.1.0)
|
117
117
|
thread_safe (0.3.6)
|
118
|
-
tzinfo (1.2.
|
118
|
+
tzinfo (1.2.9)
|
119
119
|
thread_safe (~> 0.1)
|
120
|
-
websocket-driver (0.7.
|
120
|
+
websocket-driver (0.7.3)
|
121
121
|
websocket-extensions (>= 0.1.0)
|
122
|
-
websocket-extensions (0.1.
|
122
|
+
websocket-extensions (0.1.5)
|
123
123
|
|
124
124
|
PLATFORMS
|
125
125
|
ruby
|
@@ -1,141 +1,141 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
minitest-spec-rails (6.0
|
4
|
+
minitest-spec-rails (6.1.0)
|
5
5
|
minitest (>= 5.0)
|
6
6
|
railties (>= 4.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actioncable (6.0.
|
12
|
-
actionpack (= 6.0.
|
11
|
+
actioncable (6.0.3.6)
|
12
|
+
actionpack (= 6.0.3.6)
|
13
13
|
nio4r (~> 2.0)
|
14
14
|
websocket-driver (>= 0.6.1)
|
15
|
-
actionmailbox (6.0.
|
16
|
-
actionpack (= 6.0.
|
17
|
-
activejob (= 6.0.
|
18
|
-
activerecord (= 6.0.
|
19
|
-
activestorage (= 6.0.
|
20
|
-
activesupport (= 6.0.
|
15
|
+
actionmailbox (6.0.3.6)
|
16
|
+
actionpack (= 6.0.3.6)
|
17
|
+
activejob (= 6.0.3.6)
|
18
|
+
activerecord (= 6.0.3.6)
|
19
|
+
activestorage (= 6.0.3.6)
|
20
|
+
activesupport (= 6.0.3.6)
|
21
21
|
mail (>= 2.7.1)
|
22
|
-
actionmailer (6.0.
|
23
|
-
actionpack (= 6.0.
|
24
|
-
actionview (= 6.0.
|
25
|
-
activejob (= 6.0.
|
22
|
+
actionmailer (6.0.3.6)
|
23
|
+
actionpack (= 6.0.3.6)
|
24
|
+
actionview (= 6.0.3.6)
|
25
|
+
activejob (= 6.0.3.6)
|
26
26
|
mail (~> 2.5, >= 2.5.4)
|
27
27
|
rails-dom-testing (~> 2.0)
|
28
|
-
actionpack (6.0.
|
29
|
-
actionview (= 6.0.
|
30
|
-
activesupport (= 6.0.
|
31
|
-
rack (~> 2.0)
|
28
|
+
actionpack (6.0.3.6)
|
29
|
+
actionview (= 6.0.3.6)
|
30
|
+
activesupport (= 6.0.3.6)
|
31
|
+
rack (~> 2.0, >= 2.0.8)
|
32
32
|
rack-test (>= 0.6.3)
|
33
33
|
rails-dom-testing (~> 2.0)
|
34
34
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
35
|
-
actiontext (6.0.
|
36
|
-
actionpack (= 6.0.
|
37
|
-
activerecord (= 6.0.
|
38
|
-
activestorage (= 6.0.
|
39
|
-
activesupport (= 6.0.
|
35
|
+
actiontext (6.0.3.6)
|
36
|
+
actionpack (= 6.0.3.6)
|
37
|
+
activerecord (= 6.0.3.6)
|
38
|
+
activestorage (= 6.0.3.6)
|
39
|
+
activesupport (= 6.0.3.6)
|
40
40
|
nokogiri (>= 1.8.5)
|
41
|
-
actionview (6.0.
|
42
|
-
activesupport (= 6.0.
|
41
|
+
actionview (6.0.3.6)
|
42
|
+
activesupport (= 6.0.3.6)
|
43
43
|
builder (~> 3.1)
|
44
44
|
erubi (~> 1.4)
|
45
45
|
rails-dom-testing (~> 2.0)
|
46
46
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
47
|
-
activejob (6.0.
|
48
|
-
activesupport (= 6.0.
|
47
|
+
activejob (6.0.3.6)
|
48
|
+
activesupport (= 6.0.3.6)
|
49
49
|
globalid (>= 0.3.6)
|
50
|
-
activemodel (6.0.
|
51
|
-
activesupport (= 6.0.
|
52
|
-
activerecord (6.0.
|
53
|
-
activemodel (= 6.0.
|
54
|
-
activesupport (= 6.0.
|
55
|
-
activestorage (6.0.
|
56
|
-
actionpack (= 6.0.
|
57
|
-
activejob (= 6.0.
|
58
|
-
activerecord (= 6.0.
|
59
|
-
marcel (~> 0.
|
60
|
-
activesupport (6.0.
|
50
|
+
activemodel (6.0.3.6)
|
51
|
+
activesupport (= 6.0.3.6)
|
52
|
+
activerecord (6.0.3.6)
|
53
|
+
activemodel (= 6.0.3.6)
|
54
|
+
activesupport (= 6.0.3.6)
|
55
|
+
activestorage (6.0.3.6)
|
56
|
+
actionpack (= 6.0.3.6)
|
57
|
+
activejob (= 6.0.3.6)
|
58
|
+
activerecord (= 6.0.3.6)
|
59
|
+
marcel (~> 1.0.0)
|
60
|
+
activesupport (6.0.3.6)
|
61
61
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
62
62
|
i18n (>= 0.7, < 2)
|
63
63
|
minitest (~> 5.1)
|
64
64
|
tzinfo (~> 1.1)
|
65
|
-
zeitwerk (~> 2.2)
|
66
|
-
appraisal (2.
|
65
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
66
|
+
appraisal (2.4.0)
|
67
67
|
bundler
|
68
68
|
rake
|
69
69
|
thor (>= 0.14.0)
|
70
|
-
builder (3.2.
|
71
|
-
concurrent-ruby (1.1.
|
72
|
-
crass (1.0.
|
73
|
-
erubi (1.
|
70
|
+
builder (3.2.4)
|
71
|
+
concurrent-ruby (1.1.8)
|
72
|
+
crass (1.0.6)
|
73
|
+
erubi (1.10.0)
|
74
74
|
globalid (0.4.2)
|
75
75
|
activesupport (>= 4.2.0)
|
76
|
-
i18n (1.
|
76
|
+
i18n (1.8.10)
|
77
77
|
concurrent-ruby (~> 1.0)
|
78
|
-
loofah (2.
|
78
|
+
loofah (2.9.1)
|
79
79
|
crass (~> 1.0.2)
|
80
80
|
nokogiri (>= 1.5.9)
|
81
81
|
mail (2.7.1)
|
82
82
|
mini_mime (>= 0.1.1)
|
83
|
-
marcel (0.
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
rack (2.
|
83
|
+
marcel (1.0.1)
|
84
|
+
method_source (1.0.0)
|
85
|
+
mini_mime (1.1.0)
|
86
|
+
mini_portile2 (2.5.1)
|
87
|
+
minitest (5.14.4)
|
88
|
+
nio4r (2.5.7)
|
89
|
+
nokogiri (1.11.3)
|
90
|
+
mini_portile2 (~> 2.5.0)
|
91
|
+
racc (~> 1.4)
|
92
|
+
racc (1.5.2)
|
93
|
+
rack (2.2.3)
|
94
94
|
rack-test (1.1.0)
|
95
95
|
rack (>= 1.0, < 3)
|
96
|
-
rails (6.0.
|
97
|
-
actioncable (= 6.0.
|
98
|
-
actionmailbox (= 6.0.
|
99
|
-
actionmailer (= 6.0.
|
100
|
-
actionpack (= 6.0.
|
101
|
-
actiontext (= 6.0.
|
102
|
-
actionview (= 6.0.
|
103
|
-
activejob (= 6.0.
|
104
|
-
activemodel (= 6.0.
|
105
|
-
activerecord (= 6.0.
|
106
|
-
activestorage (= 6.0.
|
107
|
-
activesupport (= 6.0.
|
96
|
+
rails (6.0.3.6)
|
97
|
+
actioncable (= 6.0.3.6)
|
98
|
+
actionmailbox (= 6.0.3.6)
|
99
|
+
actionmailer (= 6.0.3.6)
|
100
|
+
actionpack (= 6.0.3.6)
|
101
|
+
actiontext (= 6.0.3.6)
|
102
|
+
actionview (= 6.0.3.6)
|
103
|
+
activejob (= 6.0.3.6)
|
104
|
+
activemodel (= 6.0.3.6)
|
105
|
+
activerecord (= 6.0.3.6)
|
106
|
+
activestorage (= 6.0.3.6)
|
107
|
+
activesupport (= 6.0.3.6)
|
108
108
|
bundler (>= 1.3.0)
|
109
|
-
railties (= 6.0.
|
109
|
+
railties (= 6.0.3.6)
|
110
110
|
sprockets-rails (>= 2.0.0)
|
111
111
|
rails-dom-testing (2.0.3)
|
112
112
|
activesupport (>= 4.2.0)
|
113
113
|
nokogiri (>= 1.6)
|
114
114
|
rails-html-sanitizer (1.3.0)
|
115
115
|
loofah (~> 2.3)
|
116
|
-
railties (6.0.
|
117
|
-
actionpack (= 6.0.
|
118
|
-
activesupport (= 6.0.
|
116
|
+
railties (6.0.3.6)
|
117
|
+
actionpack (= 6.0.3.6)
|
118
|
+
activesupport (= 6.0.3.6)
|
119
119
|
method_source
|
120
120
|
rake (>= 0.8.7)
|
121
121
|
thor (>= 0.20.3, < 2.0)
|
122
|
-
rake (13.0.
|
123
|
-
sprockets (4.0.
|
122
|
+
rake (13.0.3)
|
123
|
+
sprockets (4.0.2)
|
124
124
|
concurrent-ruby (~> 1.0)
|
125
125
|
rack (> 1, < 3)
|
126
|
-
sprockets-rails (3.2.
|
126
|
+
sprockets-rails (3.2.2)
|
127
127
|
actionpack (>= 4.0)
|
128
128
|
activesupport (>= 4.0)
|
129
129
|
sprockets (>= 3.0.0)
|
130
|
-
sqlite3 (1.4.
|
131
|
-
thor (
|
130
|
+
sqlite3 (1.4.2)
|
131
|
+
thor (1.1.0)
|
132
132
|
thread_safe (0.3.6)
|
133
|
-
tzinfo (1.2.
|
133
|
+
tzinfo (1.2.9)
|
134
134
|
thread_safe (~> 0.1)
|
135
|
-
websocket-driver (0.7.
|
135
|
+
websocket-driver (0.7.3)
|
136
136
|
websocket-extensions (>= 0.1.0)
|
137
|
-
websocket-extensions (0.1.
|
138
|
-
zeitwerk (2.2
|
137
|
+
websocket-extensions (0.1.5)
|
138
|
+
zeitwerk (2.4.2)
|
139
139
|
|
140
140
|
PLATFORMS
|
141
141
|
ruby
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
# HACK: stolen and altered from https://github.com/blowmage/minitest-rails/pull/218/files
|
3
|
+
# Which was referenced in https://github.com/metaskills/minitest-spec-rails/issues/94
|
4
|
+
|
5
|
+
module MiniTestSpecRails
|
6
|
+
##
|
7
|
+
# This module is a placeholder for all the Test classes created using the
|
8
|
+
# spec DSL. Normally all classes are created but not assigned to a constant.
|
9
|
+
# This module is where constants will be created for these classes.
|
10
|
+
module SpecTests #:nodoc:
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
module Kernel #:nodoc:
|
15
|
+
alias describe_before_minitest_spec_constant_fix describe
|
16
|
+
private :describe_before_minitest_spec_constant_fix
|
17
|
+
def describe *args, &block
|
18
|
+
cls = describe_before_minitest_spec_constant_fix(*args, &block)
|
19
|
+
cls_const = "Test__#{cls.name.to_s.split(/\W/).reject(&:empty?).join('_'.freeze)}"
|
20
|
+
if block.source_location
|
21
|
+
source_path, line_num = block.source_location
|
22
|
+
source_path = Pathname.new(File.expand_path(source_path)).relative_path_from(Rails.root).to_s
|
23
|
+
source_path = source_path.split(/\W/).reject(&:empty?).join("_".freeze)
|
24
|
+
cls_const += "__#{source_path}__#{line_num}"
|
25
|
+
end
|
26
|
+
cls_const += "_1" while MiniTestSpecRails::SpecTests.const_defined? cls_const
|
27
|
+
MiniTestSpecRails::SpecTests.const_set cls_const, cls
|
28
|
+
cls
|
29
|
+
end
|
30
|
+
end
|
@@ -7,6 +7,7 @@ module MiniTestSpecRails
|
|
7
7
|
config.before_initialize do |_app|
|
8
8
|
require 'active_support'
|
9
9
|
require 'minitest-spec-rails/init/active_support'
|
10
|
+
require 'minitest-spec-rails/parallelize'
|
10
11
|
ActiveSupport.on_load(:action_controller) do
|
11
12
|
require 'minitest-spec-rails/init/action_controller'
|
12
13
|
require 'minitest-spec-rails/init/action_dispatch'
|
@@ -20,7 +21,9 @@ module MiniTestSpecRails
|
|
20
21
|
end
|
21
22
|
|
22
23
|
initializer 'minitest-spec-rails.action_view', after: 'action_view.setup_action_pack', group: :all do |_app|
|
23
|
-
|
24
|
+
ActiveSupport.on_load(:action_view) do
|
25
|
+
require 'minitest-spec-rails/init/action_view'
|
26
|
+
end
|
24
27
|
end
|
25
28
|
|
26
29
|
initializer 'minitest-spec-rails.mini_shoulda', group: :all do |app|
|
@@ -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.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:
|
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
|
@@ -114,6 +115,7 @@ files:
|
|
114
115
|
- lib/minitest-spec-rails/init/active_job.rb
|
115
116
|
- lib/minitest-spec-rails/init/active_support.rb
|
116
117
|
- lib/minitest-spec-rails/init/mini_shoulda.rb
|
118
|
+
- lib/minitest-spec-rails/parallelize.rb
|
117
119
|
- lib/minitest-spec-rails/railtie.rb
|
118
120
|
- lib/minitest-spec-rails/version.rb
|
119
121
|
- minitest-spec-rails.gemspec
|
@@ -136,6 +138,7 @@ files:
|
|
136
138
|
- test/dummy_app/app/views/users/index.html.erb
|
137
139
|
- test/dummy_app/config/database.yml
|
138
140
|
- test/dummy_app/config/routes.rb
|
141
|
+
- test/dummy_app/config/storage.yml
|
139
142
|
- test/dummy_app/init.rb
|
140
143
|
- test/dummy_app/lib/library.rb
|
141
144
|
- test/dummy_app/tmp/.gitkeep
|
@@ -170,8 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
173
|
- !ruby/object:Gem::Version
|
171
174
|
version: '0'
|
172
175
|
requirements: []
|
173
|
-
|
174
|
-
rubygems_version: 2.7.6.2
|
176
|
+
rubygems_version: 3.1.4
|
175
177
|
signing_key:
|
176
178
|
specification_version: 4
|
177
179
|
summary: Make Rails Use MiniTest::Spec!
|
@@ -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
|