minitest-spec-rails 6.0.1 → 6.1.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: 75eddf946debf7b03677128371dbd8ee063d8e1977a5e29cb2fee6da332cc1eb
4
- data.tar.gz: 6573b0a84d2e8a80b1256aa6ce6abc066bfea1e0c080abaaf594285a38c4864b
3
+ metadata.gz: 7ea5d94b6b919f097df9a0752e3134728d468e6d6be5048c1d54fe2fe93af229
4
+ data.tar.gz: 5e13bb3801194286492d2262354f9c3f3e9d4c349f832ffc0ee894b3fcfbf75e
5
5
  SHA512:
6
- metadata.gz: 304f971b4d656d9a00649494aecb4784ee7477b4f60ff02008f68b59f6932ca33f1fbf1c332123f825cb1511b10056c40beafd308840e9012358a2b5f0e90bac
7
- data.tar.gz: ce907f266e7e9ce2e3a59c604853d44b03ef89ff6bf2289108ef3101b4b6e374710e470c8091b83ae30514d56f76c9f90fb09ea38f224edf8be34109f460ed54
6
+ metadata.gz: d8603d5bac134d1e626dd7bff373b7a04d701a88773f0170534e182cc93f5e5e66191e43bfc21f143f3fae8382b48c72e32d9f509e0132ccef862e36360eb500
7
+ data.tar.gz: 14a5eefc0cfe12707f124bc0016d9c54eed9b6bc0569bbf6204aa993f88fc0405422b6dbcc7261081ee235daa2a5627f509e9011302820a3f83d3324cb57b0da
@@ -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: bundle exec rake
33
+ run: |
34
+ export BUNDLE_GEMFILE="${GITHUB_WORKSPACE}/gemfiles/${MTSR_RAILS_VERSION}.gemfile"
35
+ bundle exec rake
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,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
- * Changed gemspec to `railties` vs `rails`. Thanks @seuros
19
+ - Changed gemspec to `railties` vs `rails`. Thanks @seuros
4
20
 
5
21
  ## 6.0.0
6
22
 
7
- * Bumping to be major with latest testing versions.
23
+ - Bumping to be major with latest testing versions.
8
24
 
9
25
  ## 5.6.0
10
26
 
11
- * Add Rails v6 via gem spec support.
27
+ - Add Rails v6 via gem spec support.
12
28
 
13
29
  ## 5.5.0
14
30
 
15
- * 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
16
32
 
17
33
  ## 5.4.0
18
34
 
19
- * 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.
20
36
 
21
37
  ## 5.3.0
22
38
 
23
- * Allow Rails 4.1 to new 5.x to be supported.
39
+ - Allow Rails 4.1 to new 5.x to be supported.
24
40
 
25
41
  ## 5.2.2
26
42
 
27
- * Fix ActiveJob support for `described_class`. Thanks @pschambacher.
43
+ - Fix ActiveJob support for `described_class`. Thanks @pschambacher.
28
44
 
29
45
  ## 5.2.1
30
46
 
31
- * 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.
32
48
 
33
49
  ## 5.2.0
34
50
 
35
- * Added ActiveJob support. Fixes #59. Thanks @xpepermint.
51
+ - Added ActiveJob support. Fixes #59. Thanks @xpepermint.
36
52
 
37
53
  ## 5.1.1
38
54
 
39
- * Fix an issue where `describe` method was removed. Fixes #55 & #50
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
- * Fixed ActiveSupport's Declarative#test forwarded implementation. Fixed #46.
49
-
64
+ - Fixed ActiveSupport's Declarative#test forwarded implementation. Fixed #46.
50
65
 
51
66
  ## 5.0.3
52
67
 
53
- * Fixed ActionView load order & url helpers. Fixes #42.
54
-
68
+ - Fixed ActionView load order & url helpers. Fixes #42.
55
69
 
56
70
  ## 5.0.2
57
71
 
58
- * Fixed initialization callbacks for latest Rails 4.1. Fixes #39.
59
-
72
+ - Fixed initialization callbacks for latest Rails 4.1. Fixes #39.
60
73
 
61
74
  ## 5.0.1
62
75
 
63
- * Change initialization so that ActiveSupport always comes first.
64
-
76
+ - Change initialization so that ActiveSupport always comes first.
65
77
 
66
78
  ## 5.0.0
67
79
 
68
- * Minitest 5.x and Rails 4.1 compatability. Fixes #36.
69
- * Fix nested described test names along with Minitest::Spec.describe_stack. Fixed #21.
70
- * Leverage `ActiveSupport::Testing::ConstantLookup` for our `described_class` interface.
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
- * Fix nested described test names. Fixes #21.
76
-
86
+ - Fix nested described test names. Fixes #21.
77
87
 
78
88
  ## 4.7.5
79
89
 
80
- * Fixed gemspec using '>= 3.0', '< 4.1'. Fixed #35.
81
-
90
+ - Fixed gemspec using '>= 3.0', '< 4.1'. Fixed #35.
82
91
 
83
92
  ## 4.7.4
84
93
 
85
- * Enforces case sensitivity on registered spec types. Fixes #26.
86
-
94
+ - Enforces case sensitivity on registered spec types. Fixes #26.
87
95
 
88
96
  ## 4.7.3
89
97
 
90
- * Allow using ActiveSupport's Declarative#test as an alias to it. Thanks @ysbaddaden. Fixes #23.
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
- * Register non ActiveRecord::Base classes correctly. Thanks @mptre.
96
-
102
+ - Register non ActiveRecord::Base classes correctly. Thanks @mptre.
97
103
 
98
104
  ## 4.7.1
99
105
 
100
- * Only use a TU shim for Ruby 1.8. See README for info. Fixes #18.
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
- * Use Minitest::Spec::DSL provided by Minitest 4.7.
106
-
110
+ - Use Minitest::Spec::DSL provided by Minitest 4.7.
107
111
 
108
112
  ## 4.3.8
109
113
 
110
- * Less coupling to ActiveRecord ORM, works for MongoDB now. Thanks @kimsuelim
111
-
114
+ - Less coupling to ActiveRecord ORM, works for MongoDB now. Thanks @kimsuelim
112
115
 
113
116
  ## v4.3.7
114
117
 
115
- * Fix helper test bug where calling methods in first context block blew up. Fixes #13.
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
- * Only require the freedom patches and autorun when Rails.env.test?
121
-
122
+ - Only require the freedom patches and autorun when Rails.env.test?
122
123
 
123
124
  ## v4.3.5
124
125
 
125
- * Make sure #described_class works in ActiveSupport::TestCase class level.
126
-
126
+ - Make sure #described_class works in ActiveSupport::TestCase class level.
127
127
 
128
128
  ## v4.3.4
129
129
 
130
- * Add mini_should support and talk about matchers.
131
-
130
+ - Add mini_should support and talk about matchers.
132
131
 
133
132
  ## v4.3.3
134
133
 
135
- * Fix MiniTest::Unit::TestCase hack for Rails 4, ignore in Rails 3.
136
-
134
+ - Fix MiniTest::Unit::TestCase hack for Rails 4, ignore in Rails 3.
137
135
 
138
136
  ## v4.3.2
139
137
 
140
- * Way better support for controller_class, mailer_class, and helper_class reflection.
141
-
138
+ - Way better support for controller_class, mailer_class, and helper_class reflection.
142
139
 
143
140
  ## v4.3.1
144
141
 
145
- * Eager load controller_class, mailer_class, and helper_class.
146
-
142
+ - Eager load controller_class, mailer_class, and helper_class.
147
143
 
148
144
  ## v4.3.0
149
145
 
150
- * All new MiniTest::Spec for Rails!!! Tested to the hilt!!!
151
- * Track MiniTest's major/minior version number.
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
- * Must use MiniTest version ~> 2.1. As 3.x will not work.
157
-
151
+ - Must use MiniTest version ~> 2.1. As 3.x will not work.
158
152
 
159
153
  ## v3.0.6
160
154
 
161
- * Use #constantize vs. #safe_constantize for Rails 3.0 compatability.
162
-
155
+ - Use #constantize vs. #safe_constantize for Rails 3.0 compatability.
163
156
 
164
157
  ## v3.0.5
165
158
 
166
- * Use ActionController::IntegrationTest vs. ActionDispatch::IntegrationTest
167
-
159
+ - Use ActionController::IntegrationTest vs. ActionDispatch::IntegrationTest
168
160
 
169
161
  ## v3.0.4
170
162
 
171
- * Use class app setter for integration tests.
172
-
163
+ - Use class app setter for integration tests.
173
164
 
174
165
  ## v3.0.3
175
166
 
176
- * 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
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
- * Remove version deps on minitest since v3 is out. Should work with any v2/3 version.
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
- * Add rails to the gemspec.
176
+ - Add rails to the gemspec.
188
177
 
189
178
  ## v3.0.0
190
179
 
191
- * Initial Release, targeted to Rails 3.x.
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="http://cheat.errtheblog.com/s/minitest">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.
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.1)
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.2.0)
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.3)
54
- concurrent-ruby (1.1.5)
55
- crass (1.0.5)
56
- erubi (1.9.0)
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.7.0)
59
+ i18n (1.8.10)
60
60
  concurrent-ruby (~> 1.0)
61
- loofah (2.4.0)
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.9.2)
67
- mini_mime (1.0.2)
68
- mini_portile2 (2.4.0)
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.2)
71
- nokogiri (1.10.5)
72
- mini_portile2 (~> 2.4.0)
73
- rack (2.0.7)
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.1)
100
- sprockets (4.0.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.1)
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.1)
108
- thor (0.20.3)
109
+ sqlite3 (1.4.2)
110
+ thor (1.1.0)
109
111
  thread_safe (0.3.6)
110
- tzinfo (1.2.5)
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.4)
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.1)
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.4)
12
- actionpack (= 5.2.4)
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.4)
16
- actionpack (= 5.2.4)
17
- actionview (= 5.2.4)
18
- activejob (= 5.2.4)
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.4)
22
- actionview (= 5.2.4)
23
- activesupport (= 5.2.4)
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.4)
29
- activesupport (= 5.2.4)
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.4)
35
- activesupport (= 5.2.4)
34
+ activejob (5.2.5)
35
+ activesupport (= 5.2.5)
36
36
  globalid (>= 0.3.6)
37
- activemodel (5.2.4)
38
- activesupport (= 5.2.4)
39
- activerecord (5.2.4)
40
- activemodel (= 5.2.4)
41
- activesupport (= 5.2.4)
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.4)
44
- actionpack (= 5.2.4)
45
- activerecord (= 5.2.4)
46
- marcel (~> 0.3.1)
47
- activesupport (5.2.4)
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.2.0)
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.3)
58
- concurrent-ruby (1.1.5)
59
- crass (1.0.5)
60
- erubi (1.9.0)
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.7.0)
63
+ i18n (1.8.10)
64
64
  concurrent-ruby (~> 1.0)
65
- loofah (2.4.0)
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.3.3)
71
- mimemagic (~> 0.3.2)
72
- method_source (0.9.2)
73
- mimemagic (0.3.3)
74
- mini_mime (1.0.2)
75
- mini_portile2 (2.4.0)
76
- minitest (5.13.0)
77
- nio4r (2.5.2)
78
- nokogiri (1.10.5)
79
- mini_portile2 (~> 2.4.0)
80
- rack (2.0.7)
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.4)
84
- actioncable (= 5.2.4)
85
- actionmailer (= 5.2.4)
86
- actionpack (= 5.2.4)
87
- actionview (= 5.2.4)
88
- activejob (= 5.2.4)
89
- activemodel (= 5.2.4)
90
- activerecord (= 5.2.4)
91
- activestorage (= 5.2.4)
92
- activesupport (= 5.2.4)
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.4)
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.4)
102
- actionpack (= 5.2.4)
103
- activesupport (= 5.2.4)
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.1)
108
- sprockets (4.0.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.1)
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.1)
116
- thor (0.20.3)
115
+ sqlite3 (1.4.2)
116
+ thor (1.1.0)
117
117
  thread_safe (0.3.6)
118
- tzinfo (1.2.5)
118
+ tzinfo (1.2.9)
119
119
  thread_safe (~> 0.1)
120
- websocket-driver (0.7.1)
120
+ websocket-driver (0.7.3)
121
121
  websocket-extensions (>= 0.1.0)
122
- websocket-extensions (0.1.4)
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.1)
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.1)
12
- actionpack (= 6.0.1)
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.1)
16
- actionpack (= 6.0.1)
17
- activejob (= 6.0.1)
18
- activerecord (= 6.0.1)
19
- activestorage (= 6.0.1)
20
- activesupport (= 6.0.1)
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.1)
23
- actionpack (= 6.0.1)
24
- actionview (= 6.0.1)
25
- activejob (= 6.0.1)
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.1)
29
- actionview (= 6.0.1)
30
- activesupport (= 6.0.1)
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.1)
36
- actionpack (= 6.0.1)
37
- activerecord (= 6.0.1)
38
- activestorage (= 6.0.1)
39
- activesupport (= 6.0.1)
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.1)
42
- activesupport (= 6.0.1)
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.1)
48
- activesupport (= 6.0.1)
47
+ activejob (6.0.3.6)
48
+ activesupport (= 6.0.3.6)
49
49
  globalid (>= 0.3.6)
50
- activemodel (6.0.1)
51
- activesupport (= 6.0.1)
52
- activerecord (6.0.1)
53
- activemodel (= 6.0.1)
54
- activesupport (= 6.0.1)
55
- activestorage (6.0.1)
56
- actionpack (= 6.0.1)
57
- activejob (= 6.0.1)
58
- activerecord (= 6.0.1)
59
- marcel (~> 0.3.1)
60
- activesupport (6.0.1)
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.2.0)
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.3)
71
- concurrent-ruby (1.1.5)
72
- crass (1.0.5)
73
- erubi (1.9.0)
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.7.0)
76
+ i18n (1.8.10)
77
77
  concurrent-ruby (~> 1.0)
78
- loofah (2.4.0)
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.3.3)
84
- mimemagic (~> 0.3.2)
85
- method_source (0.9.2)
86
- mimemagic (0.3.3)
87
- mini_mime (1.0.2)
88
- mini_portile2 (2.4.0)
89
- minitest (5.13.0)
90
- nio4r (2.5.2)
91
- nokogiri (1.10.5)
92
- mini_portile2 (~> 2.4.0)
93
- rack (2.0.7)
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.1)
97
- actioncable (= 6.0.1)
98
- actionmailbox (= 6.0.1)
99
- actionmailer (= 6.0.1)
100
- actionpack (= 6.0.1)
101
- actiontext (= 6.0.1)
102
- actionview (= 6.0.1)
103
- activejob (= 6.0.1)
104
- activemodel (= 6.0.1)
105
- activerecord (= 6.0.1)
106
- activestorage (= 6.0.1)
107
- activesupport (= 6.0.1)
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.1)
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.1)
117
- actionpack (= 6.0.1)
118
- activesupport (= 6.0.1)
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.1)
123
- sprockets (4.0.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.1)
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.1)
131
- thor (0.20.3)
130
+ sqlite3 (1.4.2)
131
+ thor (1.1.0)
132
132
  thread_safe (0.3.6)
133
- tzinfo (1.2.5)
133
+ tzinfo (1.2.9)
134
134
  thread_safe (~> 0.1)
135
- websocket-driver (0.7.1)
135
+ websocket-driver (0.7.3)
136
136
  websocket-extensions (>= 0.1.0)
137
- websocket-extensions (0.1.4)
138
- zeitwerk (2.2.1)
137
+ websocket-extensions (0.1.5)
138
+ zeitwerk (2.4.2)
139
139
 
140
140
  PLATFORMS
141
141
  ruby
@@ -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
@@ -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
- require 'minitest-spec-rails/init/action_view'
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|
@@ -1,3 +1,3 @@
1
1
  module MiniTestSpecRails
2
- VERSION = '6.0.1'.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.1
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: 2019-11-28 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
@@ -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
- rubyforge_project:
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