minitest-spec-rails 5.0.0 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/ci.yml +36 -0
- data/.gitignore +1 -2
- data/.rubocop.yml +26 -0
- data/Appraisals +13 -1
- data/CHANGELOG.md +130 -46
- data/CODE_OF_CONDUCT.md +31 -0
- data/Gemfile +0 -4
- data/README.md +63 -67
- data/Rakefile +6 -14
- data/gemfiles/rails_v6.0.x.gemfile +8 -0
- data/gemfiles/rails_v6.0.x.gemfile.lock +172 -0
- data/gemfiles/rails_v6.1.x.gemfile +8 -0
- data/gemfiles/rails_v6.1.x.gemfile.lock +175 -0
- data/gemfiles/rails_v7.0.x.gemfile +8 -0
- data/gemfiles/rails_v7.0.x.gemfile.lock +174 -0
- data/gemfiles/rails_v7.1.x.gemfile +9 -0
- data/lib/minitest-spec-rails/dsl.rb +6 -10
- data/lib/minitest-spec-rails/init/action_cable.rb +28 -0
- data/lib/minitest-spec-rails/init/action_controller.rb +3 -7
- data/lib/minitest-spec-rails/init/action_dispatch.rb +1 -3
- data/lib/minitest-spec-rails/init/action_mailer.rb +2 -7
- data/lib/minitest-spec-rails/init/action_view.rb +1 -5
- data/lib/minitest-spec-rails/init/active_job.rb +24 -0
- data/lib/minitest-spec-rails/init/active_support.rb +8 -11
- data/lib/minitest-spec-rails/init/mini_shoulda.rb +2 -6
- data/lib/minitest-spec-rails/parallelize.rb +30 -0
- data/lib/minitest-spec-rails/railtie.rb +24 -17
- data/lib/minitest-spec-rails/version.rb +1 -1
- data/minitest-spec-rails.gemspec +10 -9
- data/test/cases/action_cable_test.rb +38 -0
- data/test/cases/action_controller_test.rb +13 -16
- data/test/cases/action_dispatch_test.rb +18 -21
- data/test/cases/action_mailer_test.rb +13 -16
- data/test/cases/action_view_test.rb +17 -20
- data/test/cases/active_job_test.rb +46 -0
- data/test/cases/active_support_test.rb +28 -18
- data/test/cases/mini_shoulda_test.rb +6 -11
- data/test/dummy_app/app/assets/config/manifest.js +1 -0
- data/test/dummy_app/app/channels/application_cable/channel.rb +4 -0
- data/test/dummy_app/app/channels/application_cable/connection.rb +4 -0
- data/test/dummy_app/app/controllers/application_controller.rb +1 -3
- data/test/dummy_app/app/controllers/users_controller.rb +1 -3
- data/test/dummy_app/app/helpers/application_helper.rb +0 -1
- data/test/dummy_app/app/helpers/foos_helper.rb +3 -1
- data/test/dummy_app/app/helpers/users_helper.rb +1 -3
- data/test/dummy_app/app/mailers/user_mailer.rb +2 -4
- data/test/dummy_app/app/models/post.rb +0 -3
- data/test/dummy_app/app/models/user.rb +0 -3
- data/test/dummy_app/config/routes.rb +1 -1
- data/test/dummy_app/config/storage.yml +34 -0
- data/test/dummy_app/init.rb +18 -21
- data/test/dummy_app/tmp/development_secret.txt +1 -0
- data/test/dummy_tests/application_controller_test.rb +19 -25
- data/test/dummy_tests/{foo_helper_test.rb → foos_helper_test.rb} +2 -5
- data/test/dummy_tests/integration_test.rb +5 -11
- data/test/dummy_tests/library_test.rb +3 -3
- data/test/dummy_tests/special_users_controller_test.rb +10 -0
- data/test/dummy_tests/user_mailer_test.rb +24 -26
- data/test/dummy_tests/user_test.rb +15 -21
- data/test/dummy_tests/users_controller_test.rb +8 -4
- data/test/dummy_tests/users_helper_test.rb +15 -21
- data/test/support/shared_test_case_behavior.rb +4 -7
- data/test/test_helper.rb +1 -5
- data/test/test_helper_dummy.rb +5 -7
- metadata +87 -74
- data/.travis.yml +0 -11
- data/Guardfile +0 -7
- data/test/support/minitest.rb +0 -1
data/Rakefile
CHANGED
@@ -1,19 +1,11 @@
|
|
1
|
-
require 'rubygems'
|
2
1
|
require 'bundler/gem_tasks'
|
3
2
|
require 'rake/testtask'
|
4
|
-
require 'appraisal'
|
5
3
|
|
6
|
-
Rake::TestTask.new
|
7
|
-
t.libs = [
|
8
|
-
t.test_files = Dir.glob(
|
9
|
-
t.verbose =
|
4
|
+
Rake::TestTask.new do |t|
|
5
|
+
t.libs = %w[lib test]
|
6
|
+
t.test_files = Dir.glob('test/**/*_test.rb').sort
|
7
|
+
t.verbose = false
|
8
|
+
t.warning = false
|
10
9
|
end
|
11
10
|
|
12
|
-
task :
|
13
|
-
|
14
|
-
desc "Setup Appraisal."
|
15
|
-
task 'appraisal:setup' do
|
16
|
-
Rake::Task['appraisal:cleanup'].invoke
|
17
|
-
Rake::Task['appraisal:gemfiles'].invoke
|
18
|
-
Rake::Task['appraisal:install'].invoke
|
19
|
-
end
|
11
|
+
task default: :test
|
@@ -0,0 +1,172 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
minitest-spec-rails (7.2.0)
|
5
|
+
minitest (>= 5.0)
|
6
|
+
railties (>= 4.1)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actioncable (6.0.6.1)
|
12
|
+
actionpack (= 6.0.6.1)
|
13
|
+
nio4r (~> 2.0)
|
14
|
+
websocket-driver (>= 0.6.1)
|
15
|
+
actionmailbox (6.0.6.1)
|
16
|
+
actionpack (= 6.0.6.1)
|
17
|
+
activejob (= 6.0.6.1)
|
18
|
+
activerecord (= 6.0.6.1)
|
19
|
+
activestorage (= 6.0.6.1)
|
20
|
+
activesupport (= 6.0.6.1)
|
21
|
+
mail (>= 2.7.1)
|
22
|
+
actionmailer (6.0.6.1)
|
23
|
+
actionpack (= 6.0.6.1)
|
24
|
+
actionview (= 6.0.6.1)
|
25
|
+
activejob (= 6.0.6.1)
|
26
|
+
mail (~> 2.5, >= 2.5.4)
|
27
|
+
rails-dom-testing (~> 2.0)
|
28
|
+
actionpack (6.0.6.1)
|
29
|
+
actionview (= 6.0.6.1)
|
30
|
+
activesupport (= 6.0.6.1)
|
31
|
+
rack (~> 2.0, >= 2.0.8)
|
32
|
+
rack-test (>= 0.6.3)
|
33
|
+
rails-dom-testing (~> 2.0)
|
34
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
35
|
+
actiontext (6.0.6.1)
|
36
|
+
actionpack (= 6.0.6.1)
|
37
|
+
activerecord (= 6.0.6.1)
|
38
|
+
activestorage (= 6.0.6.1)
|
39
|
+
activesupport (= 6.0.6.1)
|
40
|
+
nokogiri (>= 1.8.5)
|
41
|
+
actionview (6.0.6.1)
|
42
|
+
activesupport (= 6.0.6.1)
|
43
|
+
builder (~> 3.1)
|
44
|
+
erubi (~> 1.4)
|
45
|
+
rails-dom-testing (~> 2.0)
|
46
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
47
|
+
activejob (6.0.6.1)
|
48
|
+
activesupport (= 6.0.6.1)
|
49
|
+
globalid (>= 0.3.6)
|
50
|
+
activemodel (6.0.6.1)
|
51
|
+
activesupport (= 6.0.6.1)
|
52
|
+
activerecord (6.0.6.1)
|
53
|
+
activemodel (= 6.0.6.1)
|
54
|
+
activesupport (= 6.0.6.1)
|
55
|
+
activestorage (6.0.6.1)
|
56
|
+
actionpack (= 6.0.6.1)
|
57
|
+
activejob (= 6.0.6.1)
|
58
|
+
activerecord (= 6.0.6.1)
|
59
|
+
marcel (~> 1.0)
|
60
|
+
activesupport (6.0.6.1)
|
61
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
62
|
+
i18n (>= 0.7, < 2)
|
63
|
+
minitest (~> 5.1)
|
64
|
+
tzinfo (~> 1.1)
|
65
|
+
zeitwerk (~> 2.2, >= 2.2.2)
|
66
|
+
appraisal (2.4.1)
|
67
|
+
bundler
|
68
|
+
rake
|
69
|
+
thor (>= 0.14.0)
|
70
|
+
builder (3.2.4)
|
71
|
+
coderay (1.1.3)
|
72
|
+
concurrent-ruby (1.2.2)
|
73
|
+
crass (1.0.6)
|
74
|
+
date (3.3.3)
|
75
|
+
erubi (1.12.0)
|
76
|
+
globalid (1.1.0)
|
77
|
+
activesupport (>= 5.0)
|
78
|
+
i18n (1.13.0)
|
79
|
+
concurrent-ruby (~> 1.0)
|
80
|
+
loofah (2.21.3)
|
81
|
+
crass (~> 1.0.2)
|
82
|
+
nokogiri (>= 1.12.0)
|
83
|
+
mail (2.8.1)
|
84
|
+
mini_mime (>= 0.1.1)
|
85
|
+
net-imap
|
86
|
+
net-pop
|
87
|
+
net-smtp
|
88
|
+
marcel (1.0.2)
|
89
|
+
method_source (1.0.0)
|
90
|
+
mini_mime (1.1.2)
|
91
|
+
minitest (5.18.0)
|
92
|
+
minitest-focus (1.3.1)
|
93
|
+
minitest (>= 4, < 6)
|
94
|
+
net-imap (0.3.4)
|
95
|
+
date
|
96
|
+
net-protocol
|
97
|
+
net-pop (0.1.2)
|
98
|
+
net-protocol
|
99
|
+
net-protocol (0.2.1)
|
100
|
+
timeout
|
101
|
+
net-smtp (0.3.3)
|
102
|
+
net-protocol
|
103
|
+
nio4r (2.5.9)
|
104
|
+
nokogiri (1.15.1-arm64-darwin)
|
105
|
+
racc (~> 1.4)
|
106
|
+
pry (0.14.2)
|
107
|
+
coderay (~> 1.1)
|
108
|
+
method_source (~> 1.0)
|
109
|
+
racc (1.6.2)
|
110
|
+
rack (2.2.7)
|
111
|
+
rack-test (2.1.0)
|
112
|
+
rack (>= 1.3)
|
113
|
+
rails (6.0.6.1)
|
114
|
+
actioncable (= 6.0.6.1)
|
115
|
+
actionmailbox (= 6.0.6.1)
|
116
|
+
actionmailer (= 6.0.6.1)
|
117
|
+
actionpack (= 6.0.6.1)
|
118
|
+
actiontext (= 6.0.6.1)
|
119
|
+
actionview (= 6.0.6.1)
|
120
|
+
activejob (= 6.0.6.1)
|
121
|
+
activemodel (= 6.0.6.1)
|
122
|
+
activerecord (= 6.0.6.1)
|
123
|
+
activestorage (= 6.0.6.1)
|
124
|
+
activesupport (= 6.0.6.1)
|
125
|
+
bundler (>= 1.3.0)
|
126
|
+
railties (= 6.0.6.1)
|
127
|
+
sprockets-rails (>= 2.0.0)
|
128
|
+
rails-dom-testing (2.0.3)
|
129
|
+
activesupport (>= 4.2.0)
|
130
|
+
nokogiri (>= 1.6)
|
131
|
+
rails-html-sanitizer (1.5.0)
|
132
|
+
loofah (~> 2.19, >= 2.19.1)
|
133
|
+
railties (6.0.6.1)
|
134
|
+
actionpack (= 6.0.6.1)
|
135
|
+
activesupport (= 6.0.6.1)
|
136
|
+
method_source
|
137
|
+
rake (>= 0.8.7)
|
138
|
+
thor (>= 0.20.3, < 2.0)
|
139
|
+
rake (13.0.6)
|
140
|
+
sprockets (4.2.0)
|
141
|
+
concurrent-ruby (~> 1.0)
|
142
|
+
rack (>= 2.2.4, < 4)
|
143
|
+
sprockets-rails (3.4.2)
|
144
|
+
actionpack (>= 5.2)
|
145
|
+
activesupport (>= 5.2)
|
146
|
+
sprockets (>= 3.0.0)
|
147
|
+
sqlite3 (1.6.3-arm64-darwin)
|
148
|
+
thor (1.2.2)
|
149
|
+
thread_safe (0.3.6)
|
150
|
+
timeout (0.3.2)
|
151
|
+
tzinfo (1.2.11)
|
152
|
+
thread_safe (~> 0.1)
|
153
|
+
websocket-driver (0.7.5)
|
154
|
+
websocket-extensions (>= 0.1.0)
|
155
|
+
websocket-extensions (0.1.5)
|
156
|
+
zeitwerk (2.6.8)
|
157
|
+
|
158
|
+
PLATFORMS
|
159
|
+
arm64-darwin-22
|
160
|
+
|
161
|
+
DEPENDENCIES
|
162
|
+
appraisal
|
163
|
+
minitest
|
164
|
+
minitest-focus
|
165
|
+
minitest-spec-rails!
|
166
|
+
pry
|
167
|
+
rails (~> 6.0.0)
|
168
|
+
rake
|
169
|
+
sqlite3
|
170
|
+
|
171
|
+
BUNDLED WITH
|
172
|
+
2.4.12
|
@@ -0,0 +1,175 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
minitest-spec-rails (7.2.0)
|
5
|
+
minitest (>= 5.0)
|
6
|
+
railties (>= 4.1)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actioncable (6.1.7.3)
|
12
|
+
actionpack (= 6.1.7.3)
|
13
|
+
activesupport (= 6.1.7.3)
|
14
|
+
nio4r (~> 2.0)
|
15
|
+
websocket-driver (>= 0.6.1)
|
16
|
+
actionmailbox (6.1.7.3)
|
17
|
+
actionpack (= 6.1.7.3)
|
18
|
+
activejob (= 6.1.7.3)
|
19
|
+
activerecord (= 6.1.7.3)
|
20
|
+
activestorage (= 6.1.7.3)
|
21
|
+
activesupport (= 6.1.7.3)
|
22
|
+
mail (>= 2.7.1)
|
23
|
+
actionmailer (6.1.7.3)
|
24
|
+
actionpack (= 6.1.7.3)
|
25
|
+
actionview (= 6.1.7.3)
|
26
|
+
activejob (= 6.1.7.3)
|
27
|
+
activesupport (= 6.1.7.3)
|
28
|
+
mail (~> 2.5, >= 2.5.4)
|
29
|
+
rails-dom-testing (~> 2.0)
|
30
|
+
actionpack (6.1.7.3)
|
31
|
+
actionview (= 6.1.7.3)
|
32
|
+
activesupport (= 6.1.7.3)
|
33
|
+
rack (~> 2.0, >= 2.0.9)
|
34
|
+
rack-test (>= 0.6.3)
|
35
|
+
rails-dom-testing (~> 2.0)
|
36
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
37
|
+
actiontext (6.1.7.3)
|
38
|
+
actionpack (= 6.1.7.3)
|
39
|
+
activerecord (= 6.1.7.3)
|
40
|
+
activestorage (= 6.1.7.3)
|
41
|
+
activesupport (= 6.1.7.3)
|
42
|
+
nokogiri (>= 1.8.5)
|
43
|
+
actionview (6.1.7.3)
|
44
|
+
activesupport (= 6.1.7.3)
|
45
|
+
builder (~> 3.1)
|
46
|
+
erubi (~> 1.4)
|
47
|
+
rails-dom-testing (~> 2.0)
|
48
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
49
|
+
activejob (6.1.7.3)
|
50
|
+
activesupport (= 6.1.7.3)
|
51
|
+
globalid (>= 0.3.6)
|
52
|
+
activemodel (6.1.7.3)
|
53
|
+
activesupport (= 6.1.7.3)
|
54
|
+
activerecord (6.1.7.3)
|
55
|
+
activemodel (= 6.1.7.3)
|
56
|
+
activesupport (= 6.1.7.3)
|
57
|
+
activestorage (6.1.7.3)
|
58
|
+
actionpack (= 6.1.7.3)
|
59
|
+
activejob (= 6.1.7.3)
|
60
|
+
activerecord (= 6.1.7.3)
|
61
|
+
activesupport (= 6.1.7.3)
|
62
|
+
marcel (~> 1.0)
|
63
|
+
mini_mime (>= 1.1.0)
|
64
|
+
activesupport (6.1.7.3)
|
65
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
66
|
+
i18n (>= 1.6, < 2)
|
67
|
+
minitest (>= 5.1)
|
68
|
+
tzinfo (~> 2.0)
|
69
|
+
zeitwerk (~> 2.3)
|
70
|
+
appraisal (2.4.1)
|
71
|
+
bundler
|
72
|
+
rake
|
73
|
+
thor (>= 0.14.0)
|
74
|
+
builder (3.2.4)
|
75
|
+
coderay (1.1.3)
|
76
|
+
concurrent-ruby (1.2.2)
|
77
|
+
crass (1.0.6)
|
78
|
+
date (3.3.3)
|
79
|
+
erubi (1.12.0)
|
80
|
+
globalid (1.1.0)
|
81
|
+
activesupport (>= 5.0)
|
82
|
+
i18n (1.13.0)
|
83
|
+
concurrent-ruby (~> 1.0)
|
84
|
+
loofah (2.21.3)
|
85
|
+
crass (~> 1.0.2)
|
86
|
+
nokogiri (>= 1.12.0)
|
87
|
+
mail (2.8.1)
|
88
|
+
mini_mime (>= 0.1.1)
|
89
|
+
net-imap
|
90
|
+
net-pop
|
91
|
+
net-smtp
|
92
|
+
marcel (1.0.2)
|
93
|
+
method_source (1.0.0)
|
94
|
+
mini_mime (1.1.2)
|
95
|
+
minitest (5.18.0)
|
96
|
+
minitest-focus (1.3.1)
|
97
|
+
minitest (>= 4, < 6)
|
98
|
+
net-imap (0.3.4)
|
99
|
+
date
|
100
|
+
net-protocol
|
101
|
+
net-pop (0.1.2)
|
102
|
+
net-protocol
|
103
|
+
net-protocol (0.2.1)
|
104
|
+
timeout
|
105
|
+
net-smtp (0.3.3)
|
106
|
+
net-protocol
|
107
|
+
nio4r (2.5.9)
|
108
|
+
nokogiri (1.15.1-arm64-darwin)
|
109
|
+
racc (~> 1.4)
|
110
|
+
pry (0.14.2)
|
111
|
+
coderay (~> 1.1)
|
112
|
+
method_source (~> 1.0)
|
113
|
+
racc (1.6.2)
|
114
|
+
rack (2.2.7)
|
115
|
+
rack-test (2.1.0)
|
116
|
+
rack (>= 1.3)
|
117
|
+
rails (6.1.7.3)
|
118
|
+
actioncable (= 6.1.7.3)
|
119
|
+
actionmailbox (= 6.1.7.3)
|
120
|
+
actionmailer (= 6.1.7.3)
|
121
|
+
actionpack (= 6.1.7.3)
|
122
|
+
actiontext (= 6.1.7.3)
|
123
|
+
actionview (= 6.1.7.3)
|
124
|
+
activejob (= 6.1.7.3)
|
125
|
+
activemodel (= 6.1.7.3)
|
126
|
+
activerecord (= 6.1.7.3)
|
127
|
+
activestorage (= 6.1.7.3)
|
128
|
+
activesupport (= 6.1.7.3)
|
129
|
+
bundler (>= 1.15.0)
|
130
|
+
railties (= 6.1.7.3)
|
131
|
+
sprockets-rails (>= 2.0.0)
|
132
|
+
rails-dom-testing (2.0.3)
|
133
|
+
activesupport (>= 4.2.0)
|
134
|
+
nokogiri (>= 1.6)
|
135
|
+
rails-html-sanitizer (1.5.0)
|
136
|
+
loofah (~> 2.19, >= 2.19.1)
|
137
|
+
railties (6.1.7.3)
|
138
|
+
actionpack (= 6.1.7.3)
|
139
|
+
activesupport (= 6.1.7.3)
|
140
|
+
method_source
|
141
|
+
rake (>= 12.2)
|
142
|
+
thor (~> 1.0)
|
143
|
+
rake (13.0.6)
|
144
|
+
sprockets (4.2.0)
|
145
|
+
concurrent-ruby (~> 1.0)
|
146
|
+
rack (>= 2.2.4, < 4)
|
147
|
+
sprockets-rails (3.4.2)
|
148
|
+
actionpack (>= 5.2)
|
149
|
+
activesupport (>= 5.2)
|
150
|
+
sprockets (>= 3.0.0)
|
151
|
+
sqlite3 (1.6.3-arm64-darwin)
|
152
|
+
thor (1.2.2)
|
153
|
+
timeout (0.3.2)
|
154
|
+
tzinfo (2.0.6)
|
155
|
+
concurrent-ruby (~> 1.0)
|
156
|
+
websocket-driver (0.7.5)
|
157
|
+
websocket-extensions (>= 0.1.0)
|
158
|
+
websocket-extensions (0.1.5)
|
159
|
+
zeitwerk (2.6.8)
|
160
|
+
|
161
|
+
PLATFORMS
|
162
|
+
arm64-darwin-22
|
163
|
+
|
164
|
+
DEPENDENCIES
|
165
|
+
appraisal
|
166
|
+
minitest
|
167
|
+
minitest-focus
|
168
|
+
minitest-spec-rails!
|
169
|
+
pry
|
170
|
+
rails (~> 6.1.0)
|
171
|
+
rake
|
172
|
+
sqlite3
|
173
|
+
|
174
|
+
BUNDLED WITH
|
175
|
+
2.4.12
|
@@ -0,0 +1,174 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
minitest-spec-rails (7.2.0)
|
5
|
+
minitest (>= 5.0)
|
6
|
+
railties (>= 4.1)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actioncable (7.0.4.3)
|
12
|
+
actionpack (= 7.0.4.3)
|
13
|
+
activesupport (= 7.0.4.3)
|
14
|
+
nio4r (~> 2.0)
|
15
|
+
websocket-driver (>= 0.6.1)
|
16
|
+
actionmailbox (7.0.4.3)
|
17
|
+
actionpack (= 7.0.4.3)
|
18
|
+
activejob (= 7.0.4.3)
|
19
|
+
activerecord (= 7.0.4.3)
|
20
|
+
activestorage (= 7.0.4.3)
|
21
|
+
activesupport (= 7.0.4.3)
|
22
|
+
mail (>= 2.7.1)
|
23
|
+
net-imap
|
24
|
+
net-pop
|
25
|
+
net-smtp
|
26
|
+
actionmailer (7.0.4.3)
|
27
|
+
actionpack (= 7.0.4.3)
|
28
|
+
actionview (= 7.0.4.3)
|
29
|
+
activejob (= 7.0.4.3)
|
30
|
+
activesupport (= 7.0.4.3)
|
31
|
+
mail (~> 2.5, >= 2.5.4)
|
32
|
+
net-imap
|
33
|
+
net-pop
|
34
|
+
net-smtp
|
35
|
+
rails-dom-testing (~> 2.0)
|
36
|
+
actionpack (7.0.4.3)
|
37
|
+
actionview (= 7.0.4.3)
|
38
|
+
activesupport (= 7.0.4.3)
|
39
|
+
rack (~> 2.0, >= 2.2.0)
|
40
|
+
rack-test (>= 0.6.3)
|
41
|
+
rails-dom-testing (~> 2.0)
|
42
|
+
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
43
|
+
actiontext (7.0.4.3)
|
44
|
+
actionpack (= 7.0.4.3)
|
45
|
+
activerecord (= 7.0.4.3)
|
46
|
+
activestorage (= 7.0.4.3)
|
47
|
+
activesupport (= 7.0.4.3)
|
48
|
+
globalid (>= 0.6.0)
|
49
|
+
nokogiri (>= 1.8.5)
|
50
|
+
actionview (7.0.4.3)
|
51
|
+
activesupport (= 7.0.4.3)
|
52
|
+
builder (~> 3.1)
|
53
|
+
erubi (~> 1.4)
|
54
|
+
rails-dom-testing (~> 2.0)
|
55
|
+
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
56
|
+
activejob (7.0.4.3)
|
57
|
+
activesupport (= 7.0.4.3)
|
58
|
+
globalid (>= 0.3.6)
|
59
|
+
activemodel (7.0.4.3)
|
60
|
+
activesupport (= 7.0.4.3)
|
61
|
+
activerecord (7.0.4.3)
|
62
|
+
activemodel (= 7.0.4.3)
|
63
|
+
activesupport (= 7.0.4.3)
|
64
|
+
activestorage (7.0.4.3)
|
65
|
+
actionpack (= 7.0.4.3)
|
66
|
+
activejob (= 7.0.4.3)
|
67
|
+
activerecord (= 7.0.4.3)
|
68
|
+
activesupport (= 7.0.4.3)
|
69
|
+
marcel (~> 1.0)
|
70
|
+
mini_mime (>= 1.1.0)
|
71
|
+
activesupport (7.0.4.3)
|
72
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
73
|
+
i18n (>= 1.6, < 2)
|
74
|
+
minitest (>= 5.1)
|
75
|
+
tzinfo (~> 2.0)
|
76
|
+
appraisal (2.4.1)
|
77
|
+
bundler
|
78
|
+
rake
|
79
|
+
thor (>= 0.14.0)
|
80
|
+
builder (3.2.4)
|
81
|
+
coderay (1.1.3)
|
82
|
+
concurrent-ruby (1.2.2)
|
83
|
+
crass (1.0.6)
|
84
|
+
date (3.3.3)
|
85
|
+
erubi (1.12.0)
|
86
|
+
globalid (1.1.0)
|
87
|
+
activesupport (>= 5.0)
|
88
|
+
i18n (1.13.0)
|
89
|
+
concurrent-ruby (~> 1.0)
|
90
|
+
loofah (2.21.3)
|
91
|
+
crass (~> 1.0.2)
|
92
|
+
nokogiri (>= 1.12.0)
|
93
|
+
mail (2.8.1)
|
94
|
+
mini_mime (>= 0.1.1)
|
95
|
+
net-imap
|
96
|
+
net-pop
|
97
|
+
net-smtp
|
98
|
+
marcel (1.0.2)
|
99
|
+
method_source (1.0.0)
|
100
|
+
mini_mime (1.1.2)
|
101
|
+
minitest (5.18.0)
|
102
|
+
minitest-focus (1.3.1)
|
103
|
+
minitest (>= 4, < 6)
|
104
|
+
net-imap (0.3.4)
|
105
|
+
date
|
106
|
+
net-protocol
|
107
|
+
net-pop (0.1.2)
|
108
|
+
net-protocol
|
109
|
+
net-protocol (0.2.1)
|
110
|
+
timeout
|
111
|
+
net-smtp (0.3.3)
|
112
|
+
net-protocol
|
113
|
+
nio4r (2.5.9)
|
114
|
+
nokogiri (1.15.1-arm64-darwin)
|
115
|
+
racc (~> 1.4)
|
116
|
+
pry (0.14.2)
|
117
|
+
coderay (~> 1.1)
|
118
|
+
method_source (~> 1.0)
|
119
|
+
racc (1.6.2)
|
120
|
+
rack (2.2.7)
|
121
|
+
rack-test (2.1.0)
|
122
|
+
rack (>= 1.3)
|
123
|
+
rails (7.0.4.3)
|
124
|
+
actioncable (= 7.0.4.3)
|
125
|
+
actionmailbox (= 7.0.4.3)
|
126
|
+
actionmailer (= 7.0.4.3)
|
127
|
+
actionpack (= 7.0.4.3)
|
128
|
+
actiontext (= 7.0.4.3)
|
129
|
+
actionview (= 7.0.4.3)
|
130
|
+
activejob (= 7.0.4.3)
|
131
|
+
activemodel (= 7.0.4.3)
|
132
|
+
activerecord (= 7.0.4.3)
|
133
|
+
activestorage (= 7.0.4.3)
|
134
|
+
activesupport (= 7.0.4.3)
|
135
|
+
bundler (>= 1.15.0)
|
136
|
+
railties (= 7.0.4.3)
|
137
|
+
rails-dom-testing (2.0.3)
|
138
|
+
activesupport (>= 4.2.0)
|
139
|
+
nokogiri (>= 1.6)
|
140
|
+
rails-html-sanitizer (1.5.0)
|
141
|
+
loofah (~> 2.19, >= 2.19.1)
|
142
|
+
railties (7.0.4.3)
|
143
|
+
actionpack (= 7.0.4.3)
|
144
|
+
activesupport (= 7.0.4.3)
|
145
|
+
method_source
|
146
|
+
rake (>= 12.2)
|
147
|
+
thor (~> 1.0)
|
148
|
+
zeitwerk (~> 2.5)
|
149
|
+
rake (13.0.6)
|
150
|
+
sqlite3 (1.6.3-arm64-darwin)
|
151
|
+
thor (1.2.2)
|
152
|
+
timeout (0.3.2)
|
153
|
+
tzinfo (2.0.6)
|
154
|
+
concurrent-ruby (~> 1.0)
|
155
|
+
websocket-driver (0.7.5)
|
156
|
+
websocket-extensions (>= 0.1.0)
|
157
|
+
websocket-extensions (0.1.5)
|
158
|
+
zeitwerk (2.6.8)
|
159
|
+
|
160
|
+
PLATFORMS
|
161
|
+
arm64-darwin-22
|
162
|
+
|
163
|
+
DEPENDENCIES
|
164
|
+
appraisal
|
165
|
+
minitest
|
166
|
+
minitest-focus
|
167
|
+
minitest-spec-rails!
|
168
|
+
pry
|
169
|
+
rails (~> 7.1.0)
|
170
|
+
rake
|
171
|
+
sqlite3
|
172
|
+
|
173
|
+
BUNDLED WITH
|
174
|
+
2.4.12
|
@@ -1,13 +1,11 @@
|
|
1
1
|
module MiniTestSpecRails
|
2
2
|
module DSL
|
3
|
-
|
4
3
|
def self.included(klass)
|
5
4
|
klass.extend ClassMethods
|
6
5
|
remove_method :test if method_defined?(:test)
|
7
6
|
end
|
8
7
|
|
9
8
|
module ClassMethods
|
10
|
-
|
11
9
|
def describe(*args, &block)
|
12
10
|
stack = Minitest::Spec.describe_stack
|
13
11
|
stack.push self if stack.empty?
|
@@ -15,27 +13,25 @@ module MiniTestSpecRails
|
|
15
13
|
stack.pop if stack.length == 1
|
16
14
|
end
|
17
15
|
|
18
|
-
def before(
|
19
|
-
setup {
|
16
|
+
def before(_type = nil, &block)
|
17
|
+
setup { instance_eval(&block) }
|
20
18
|
end
|
21
19
|
|
22
|
-
def after(
|
23
|
-
teardown {
|
20
|
+
def after(_type = nil, &block)
|
21
|
+
teardown { instance_eval(&block) }
|
24
22
|
end
|
25
23
|
|
26
24
|
def test(name, &block)
|
27
|
-
|
25
|
+
instance_eval { it(name, &block) }
|
28
26
|
end
|
29
27
|
|
30
28
|
def described_class
|
31
29
|
nil
|
32
30
|
end
|
33
|
-
|
34
31
|
end
|
35
32
|
|
36
33
|
def described_class
|
37
34
|
self.class.described_class
|
38
35
|
end
|
39
|
-
|
40
36
|
end
|
41
|
-
end
|
37
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
unless defined?(ActionCable::Channel)
|
2
|
+
require 'action_cable/channel'
|
3
|
+
end
|
4
|
+
|
5
|
+
require 'action_cable/channel/test_case'
|
6
|
+
|
7
|
+
module MiniTestSpecRails
|
8
|
+
module Init
|
9
|
+
module ActionCableBehavior
|
10
|
+
extend ActiveSupport::Concern
|
11
|
+
|
12
|
+
included do
|
13
|
+
class_attribute :_helper_class
|
14
|
+
register_spec_type(/(Channel)( ?Test)?\z/, self)
|
15
|
+
register_spec_type(self) { |desc| desc.is_a?(Class) && desc < self }
|
16
|
+
extend Descriptions
|
17
|
+
end
|
18
|
+
|
19
|
+
module Descriptions
|
20
|
+
def described_class
|
21
|
+
determine_default_helper_class(name)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
ActionCable::Channel::TestCase.include MiniTestSpecRails::Init::ActionCableBehavior
|
@@ -1,24 +1,20 @@
|
|
1
1
|
module MiniTestSpecRails
|
2
2
|
module Init
|
3
3
|
module ActionControllerBehavior
|
4
|
-
|
5
4
|
extend ActiveSupport::Concern
|
6
5
|
|
7
6
|
included do
|
8
7
|
extend Descriptions
|
9
|
-
register_spec_type(self) { |desc| Class
|
8
|
+
register_spec_type(self) { |desc| desc.is_a?(Class) && desc < ActionController::Metal }
|
10
9
|
register_spec_type(/Controller( ?Test)?\z/, self)
|
11
|
-
register_spec_type(self) { |desc| Class
|
10
|
+
register_spec_type(self) { |desc| desc.is_a?(Class) && desc < self }
|
12
11
|
end
|
13
|
-
|
14
|
-
module Descriptions
|
15
12
|
|
13
|
+
module Descriptions
|
16
14
|
def described_class
|
17
15
|
determine_default_controller_class(name)
|
18
16
|
end
|
19
|
-
|
20
17
|
end
|
21
|
-
|
22
18
|
end
|
23
19
|
end
|
24
20
|
end
|
@@ -1,14 +1,12 @@
|
|
1
1
|
module MiniTestSpecRails
|
2
2
|
module Init
|
3
3
|
module ActionDispatchBehavior
|
4
|
-
|
5
4
|
extend ActiveSupport::Concern
|
6
5
|
|
7
6
|
included do
|
8
7
|
register_spec_type(/(Acceptance|Integration) ?Test\z/, self)
|
9
|
-
register_spec_type(self) { |desc| Class
|
8
|
+
register_spec_type(self) { |desc| desc.is_a?(Class) && desc < self }
|
10
9
|
end
|
11
|
-
|
12
10
|
end
|
13
11
|
end
|
14
12
|
end
|