minitest-rails 6.1.1 → 7.0.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: a1f46801b6a53db3a0c5feaa1d18d8694bfe01436ed824442c6443fb11af882d
4
- data.tar.gz: bf6dd187b6dd0b4c94bffd360c251c9376e9a20d1500fc2c83d57cde7293ac50
3
+ metadata.gz: bade7a8545b9e430c25eb5286652f145204c45122a91773af1a2c7a5670e0f86
4
+ data.tar.gz: 2546f63ab01b9bc4d738d73bd6e53f14f75a6dab018606b18ffd4dd00f4cf7f8
5
5
  SHA512:
6
- metadata.gz: 919ab2116ea67655e54f166ed3065dfc5751f0c4bbe111d80573e7d74d722cae849a89a2ad2b585de486bcf585dd3db50d9ee8ade158c3d787a41d52ab149978
7
- data.tar.gz: '083f36e6d916f96b332a2b41bdcec301a60c622fbb0325f8af156c8d446ffcac9cd793bb1ad069e613384b14eb7b8f4740f54d8225f5c972fb4236ca56245c66'
6
+ metadata.gz: 6e82dc7cf9eeb894b7d114cc559812221ff3b88120a4147f62e63decbbc55b82707f5f4e451bfb4d1c891a538b02e83554232645c37ea6f7442aff8fa179e649
7
+ data.tar.gz: 5670557ab684c70958b124bed663677ea6f1683972b93ef5f649975fc039eaea6a58f20a0149c1b164f7f82041723e7fe3b3a2e96cb44f3c8e14ebae6e647a22
data/CHANGELOG.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Changes
2
2
 
3
- ### 6.1.1 / 2022-10-26
3
+ ### 7.0.0 / 2022-04-25
4
4
 
5
- Fix System test templates. (@bobmazanec)
5
+ Support Rails 7.0.
6
6
 
7
7
  ### 6.1.0 / 2020-12-14
8
8
 
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Minitest integration for Rails 6.1
4
4
 
5
- [![Build Status](https://circleci.com/gh/blowmage/minitest-rails.svg?style=svg)](https://circleci.com/gh/blowmage/minitest-rails)
5
+ [![CI](https://github.com/blowmage/minitest-rails/actions/workflows/ci.yml/badge.svg)](https://github.com/blowmage/minitest-rails/actions/workflows/ci.yml)
6
6
  [![Code Climate](https://codeclimate.com/github/blowmage/minitest-rails.png)](https://codeclimate.com/github/blowmage/minitest-rails)
7
7
 
8
8
  ## Install
@@ -21,31 +21,42 @@ Create a new rails app:
21
21
 
22
22
  ### Choosing a version
23
23
 
24
- If you are running Rails 6.x, specify a corresponding 6.x release in the Gemfile. For example, if you are using Rails 6.1 you will specify:
24
+ This gem follows the versioning of Rails.
25
+ If you are running Rails 7.0, specify the corresponding 7.0 release in the Gemfile.
26
+ For example:
27
+
28
+ ```ruby
29
+ gem "minitest-rails", "~> 7.0.0"
30
+ ```
31
+
32
+ If you are running Rails 6.x, specify the corresponding 6.x release in the Gemfile.
33
+ For example, if you are using Rails 6.1 you will specify:
25
34
 
26
35
  ```ruby
27
36
  gem "minitest-rails", "~> 6.1.0"
28
37
  ```
29
38
 
30
- If you are running Rails 5.x, specify a corresponding 5.x release in the Gemfile. For example, if you are using Rails 5.2 you will specify:
39
+ If you are running Rails 5.x, specify the corresponding 5.x release in the Gemfile.
40
+ For example, if you are using Rails 5.2 you will specify:
31
41
 
32
42
  ```ruby
33
43
  gem "minitest-rails", "~> 5.2.0"
34
44
  ```
35
45
 
36
- Or, if you prefer to run the previous release for Rails 5.x, specify a 3.x release in the Gemfile:
46
+ Or, if you prefer to run the previous release for Rails 5.x, specify the 3.x release in the Gemfile:
37
47
 
38
48
  ```ruby
39
49
  gem "minitest-rails", "~> 3.0"
40
50
  ```
41
51
 
42
- If you are running Rails 4.1 or 4.2, specify a 2.x release in the Gemfile:
52
+ If you are running Rails 4.1 or 4.2, specify the 2.x release in the Gemfile:
43
53
 
44
54
  ```ruby
45
55
  gem "minitest-rails", "~> 2.0"
46
56
  ```
47
57
 
48
- If you are running Rails 4.0 or earlier, specify a 1.x release in the Gemfile:
58
+ If you are running Rails 4.0 or earlier, you really need to upgrade.
59
+ But if you are you need to specify the 1.x release in the Gemfile:
49
60
 
50
61
  ```ruby
51
62
  gem "minitest-rails", "~> 1.0"
@@ -1,8 +1,9 @@
1
1
  require "application_system_test_case"
2
2
 
3
- describe <%= class_name.pluralize %>, :system do
4
- # it "visits the index" do
3
+ class <%= class_name.pluralize %>Test < ApplicationSystemTestCase
4
+ # test "visiting the index" do
5
5
  # visit <%= plural_table_name %>_url
6
+ #
6
7
  # assert_selector "h1", text: "<%= class_name %>"
7
8
  # end
8
9
  end
@@ -1,8 +1,9 @@
1
1
  require "application_system_test_case"
2
2
 
3
3
  class <%= class_name.pluralize %>Test < ApplicationSystemTestCase
4
- # def test_visiting_index
4
+ # test "visiting the index" do
5
5
  # visit <%= plural_table_name %>_url
6
+ #
6
7
  # assert_selector "h1", text: "<%= class_name %>"
7
8
  # end
8
9
  end
@@ -4,7 +4,7 @@ require "rails/generators/named_base"
4
4
 
5
5
  module Minitest
6
6
  module Generators
7
- class Base < ::Rails::Generators::NamedBase #:nodoc:
7
+ class Base < ::Rails::Generators::NamedBase # :nodoc:
8
8
  class_option :spec, type: :boolean, default: true,
9
9
  desc: "Use Minitest::Spec DSL"
10
10
  class_option :spec_expectation_monad, type: :string, default: "value",
@@ -25,7 +25,7 @@ class ActionCable::TestCase
25
25
  # end
26
26
  #
27
27
  # See also Minitest::Rails::Expectations::ActionCable::TestHelper#must_have_broadcasts
28
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/TestHelper.html#method-i-assert_broadcasts
28
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/TestHelper.html#method-i-assert_broadcasts
29
29
  #
30
30
  # :method: assert_broadcasts
31
31
  # :call-seq: assert_broadcasts(stream, number)
@@ -52,7 +52,7 @@ class ActionCable::TestCase
52
52
  # assert_broadcasts 'messages', 0, &block
53
53
  #
54
54
  # See also Minitest::Rails::Expectations::ActionCable::TestHelper#wont_have_broadcasts
55
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/TestHelper.html#method-i-assert_no_broadcasts
55
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/TestHelper.html#method-i-assert_no_broadcasts
56
56
  #
57
57
  # :method: refute_broadcasts
58
58
  # :call-seq: refute_broadcasts(stream, &block)
@@ -75,7 +75,7 @@ class ActionCable::TestCase
75
75
  # end
76
76
  #
77
77
  # See also Minitest::Rails::Expectations::ActionCable::TestHelper#must_broadcast_on
78
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/TestHelper.html#method-i-assert_broadcast_on
78
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/TestHelper.html#method-i-assert_broadcast_on
79
79
  #
80
80
  # :method: assert_broadcast_on
81
81
  # :call-seq: assert_broadcast_on(stream, data)
@@ -108,7 +108,7 @@ class ActionCable::Channel::TestCase
108
108
  # end
109
109
  #
110
110
  # See also Minitest::Rails::Expectations::ActionCable::TestHelper#must_have_broadcasts
111
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/TestHelper.html#method-i-assert_broadcasts
111
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/TestHelper.html#method-i-assert_broadcasts
112
112
  #
113
113
  # :method: assert_broadcasts
114
114
  # :call-seq: assert_broadcasts(stream, number)
@@ -135,7 +135,7 @@ class ActionCable::Channel::TestCase
135
135
  # assert_broadcasts 'messages', 0, &block
136
136
  #
137
137
  # See also Minitest::Rails::Expectations::ActionCable::TestHelper#wont_have_broadcasts
138
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/TestHelper.html#method-i-assert_no_broadcasts
138
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/TestHelper.html#method-i-assert_no_broadcasts
139
139
  #
140
140
  # :method: refute_broadcasts
141
141
  # :call-seq: refute_broadcasts(stream, &block)
@@ -158,7 +158,7 @@ class ActionCable::Channel::TestCase
158
158
  # end
159
159
  #
160
160
  # See also Minitest::Rails::Expectations::ActionCable::TestHelper#must_broadcast_on
161
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/TestHelper.html#method-i-assert_broadcast_on
161
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/TestHelper.html#method-i-assert_broadcast_on
162
162
  #
163
163
  # :method: assert_broadcast_on
164
164
  # :call-seq: assert_broadcast_on(stream, data)
@@ -172,7 +172,7 @@ class ActionCable::Channel::TestCase
172
172
  # end
173
173
  #
174
174
  # See also Minitest::Rails::Expectations::ActionCable::Channel#wont_have_streams
175
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/Channel/TestCase/Behavior.html#method-i-assert_no_streams
175
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/Channel/TestCase/Behavior.html#method-i-assert_no_streams
176
176
  #
177
177
  # :method: refute_streams
178
178
  alias refute_streams assert_no_streams
@@ -186,7 +186,7 @@ class ActionCable::Channel::TestCase
186
186
  # end
187
187
  #
188
188
  # See also Minitest::Rails::Expectations::ActionCable::Channel#must_have_streams
189
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/Channel/TestCase/Behavior.html#method-i-assert_has_stream
189
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/Channel/TestCase/Behavior.html#method-i-assert_has_stream
190
190
  #
191
191
  # :method: assert_has_stream
192
192
  # :call-seq: assert_has_stream(stream)
@@ -200,7 +200,7 @@ class ActionCable::Channel::TestCase
200
200
  # end
201
201
  #
202
202
  # See also Minitest::Rails::Expectations::ActionCable::Channel#must_have_stream_for
203
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/Channel/TestCase/Behavior.html#method-i-assert_has_stream_for
203
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/Channel/TestCase/Behavior.html#method-i-assert_has_stream_for
204
204
  #
205
205
  # :method: assert_has_stream_for
206
206
  # :call-seq: assert_has_stream_for(object)
@@ -226,7 +226,7 @@ class ActionCable::Connection::TestCase
226
226
  # end
227
227
  #
228
228
  # See also Minitest::Rails::Expectations::ActionCable#must_reject_connection
229
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/Connection/Assertions.html#method-i-assert_reject_connection
229
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/Connection/Assertions.html#method-i-assert_reject_connection
230
230
  #
231
231
  # :method: assert_reject_connection
232
232
  end
@@ -25,7 +25,7 @@ class ActionMailer::TestCase
25
25
  # end
26
26
  #
27
27
  # See also Minitest::Rails::Expectations::ActionMailer#must_have_emails
28
- # See https://api.rubyonrails.org/v6.1/classes/ActionMailer/TestHelper.html#method-i-assert_emails
28
+ # See https://api.rubyonrails.org/v7.0/classes/ActionMailer/TestHelper.html#method-i-assert_emails
29
29
  #
30
30
  # :method: assert_emails
31
31
  # :call-seq: assert_emails(number, &block)
@@ -51,7 +51,7 @@ class ActionMailer::TestCase
51
51
  # assert_emails 0, &block
52
52
  #
53
53
  # See also Minitest::Rails::Expectations::ActionMailer#wont_have_emails
54
- # See https://api.rubyonrails.org/v6.1/classes/ActionMailer/TestHelper.html#method-i-assert_no_emails
54
+ # See https://api.rubyonrails.org/v7.0/classes/ActionMailer/TestHelper.html#method-i-assert_no_emails
55
55
  #
56
56
  # :method: refute_emails
57
57
  # :call-seq: refute_emails(&block)
@@ -84,7 +84,7 @@ class ActionMailer::TestCase
84
84
  # end
85
85
  #
86
86
  # See also Minitest::Rails::Expectations::ActionMailer#must_have_enqueued_emails
87
- # See https://api.rubyonrails.org/v6.1/classes/ActionMailer/TestHelper.html#method-i-assert_enqueued_emails
87
+ # See https://api.rubyonrails.org/v7.0/classes/ActionMailer/TestHelper.html#method-i-assert_enqueued_emails
88
88
  #
89
89
  # :method: assert_enqueued_emails
90
90
  # :call-seq: assert_enqueued_emails(number, &block)
@@ -122,7 +122,7 @@ class ActionMailer::TestCase
122
122
  # end
123
123
  #
124
124
  # See also Minitest::Rails::Expectations::ActionMailer#must_enqueue_email_with
125
- # See https://api.rubyonrails.org/v6.1/classes/ActionMailer/TestHelper.html#method-i-assert_enqueued_email_with
125
+ # See https://api.rubyonrails.org/v7.0/classes/ActionMailer/TestHelper.html#method-i-assert_enqueued_email_with
126
126
  #
127
127
  # :method: assert_enqueued_email_with
128
128
  # :call-seq: assert_enqueued_email_with(mailer, method, args: nil, queue: "mailers", &block)
@@ -145,7 +145,7 @@ class ActionMailer::TestCase
145
145
  # end
146
146
  #
147
147
  # See also Minitest::Rails::Expectations::ActionMailer#wont_have_enqueued_emails
148
- # See https://api.rubyonrails.org/v6.1/classes/ActionMailer/TestHelper.html#method-i-assert_no_enqueued_emails
148
+ # See https://api.rubyonrails.org/v7.0/classes/ActionMailer/TestHelper.html#method-i-assert_no_enqueued_emails
149
149
  #
150
150
  # :method: refute_enqueued_emails
151
151
  # :call-seq: refute_enqueued_emails(&block)
@@ -8,7 +8,7 @@ class ActiveSupport::TestCase
8
8
  # end
9
9
  #
10
10
  # See also Minitest::Rails::Expectations::ActiveSupport#must_change
11
- # See https://api.rubyonrails.org/v6.1/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_changes
11
+ # See https://api.rubyonrails.org/v7.0/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_changes
12
12
  #
13
13
  # :method: assert_changes
14
14
  # :call-seq: assert_changes(expression, message = nil, from: UNTRACKED, to: UNTRACKED, &block)
@@ -22,7 +22,7 @@ class ActiveSupport::TestCase
22
22
  # end
23
23
  #
24
24
  # See also Minitest::Rails::Expectations::ActiveSupport#wont_change
25
- # See https://api.rubyonrails.org/v6.1/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_no_changes
25
+ # See https://api.rubyonrails.org/v7.0/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_no_changes
26
26
  #
27
27
  # :args: expression, message = nil, &block
28
28
  alias refute_changes assert_no_changes
@@ -36,7 +36,7 @@ class ActiveSupport::TestCase
36
36
  # end
37
37
  #
38
38
  # See also Minitest::Rails::Expectations::ActiveSupport#must_change
39
- # See https://api.rubyonrails.org/v6.1/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_difference
39
+ # See https://api.rubyonrails.org/v7.0/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_difference
40
40
  #
41
41
  # :method: assert_difference
42
42
  # :call-seq: assert_difference(expression, *args, &block)
@@ -50,7 +50,7 @@ class ActiveSupport::TestCase
50
50
  # end
51
51
  #
52
52
  # See also Minitest::Rails::Expectations::ActiveSupport#wont_change
53
- # See https://api.rubyonrails.org/v6.1/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_no_difference
53
+ # See https://api.rubyonrails.org/v7.0/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_no_difference
54
54
  #
55
55
  # :args: expression, message = nil, &block
56
56
  alias refute_difference assert_no_difference
@@ -31,7 +31,7 @@ module Minitest
31
31
  # end
32
32
  #
33
33
  # See also ActionCable::TestHelper#assert_broadcasts
34
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/TestHelper.html#method-i-assert_broadcasts
34
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/TestHelper.html#method-i-assert_broadcasts
35
35
  #
36
36
  # :method: must_have_broadcasts
37
37
  # :call-seq: must_have_broadcasts(stream, number)
@@ -58,7 +58,7 @@ module Minitest
58
58
  # must_have_broadcasts 'messages', 0, &block
59
59
  #
60
60
  # See also ActionCable::TestHelper#wont_have_broadcasts
61
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/TestHelper.html#method-i-assert_no_broadcasts
61
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/TestHelper.html#method-i-assert_no_broadcasts
62
62
  #
63
63
  # :method: wont_have_broadcasts
64
64
  # :call-seq: wont_have_broadcasts(stream, &block)
@@ -80,7 +80,7 @@ module Minitest
80
80
  # end
81
81
  #
82
82
  # See also ActionCable::TestHelper#assert_broadcast_on
83
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/TestHelper.html#method-i-assert_broadcast_on
83
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/TestHelper.html#method-i-assert_broadcast_on
84
84
  #
85
85
  # :method: must_broadcast_on
86
86
  # :call-seq: must_broadcast_on(stream, data)
@@ -104,7 +104,7 @@ module Minitest
104
104
  # end
105
105
  #
106
106
  # See also ActionCable::Channel::TestCase#assert_no_streams
107
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/Channel/TestCase/Behavior.html#method-i-assert_no_streams
107
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/Channel/TestCase/Behavior.html#method-i-assert_no_streams
108
108
  #
109
109
  # :method: wont_have_streams
110
110
 
@@ -117,7 +117,7 @@ module Minitest
117
117
  # end
118
118
  #
119
119
  # See also ActionCable::Channel::TestCase#assert_has_stream
120
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/Channel/TestCase/Behavior.html#method-i-assert_has_stream
120
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/Channel/TestCase/Behavior.html#method-i-assert_has_stream
121
121
  #
122
122
  # :method: must_have_streams
123
123
  # :call-seq: must_have_streams(stream)
@@ -131,7 +131,7 @@ module Minitest
131
131
  # end
132
132
  #
133
133
  # See also ActionCable::Channel::TestCase#assert_has_stream_for
134
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/Channel/TestCase/Behavior.html#method-i-assert_has_stream_for
134
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/Channel/TestCase/Behavior.html#method-i-assert_has_stream_for
135
135
  #
136
136
  # :method: must_have_stream_for
137
137
  # :call-seq: must_have_stream_for(object)
@@ -166,7 +166,7 @@ module Minitest
166
166
  # end
167
167
  #
168
168
  # See also ActionCable::Connection::TestCase#assert_reject_connection
169
- # See https://api.rubyonrails.org/v6.1/classes/ActionCable/Connection/Assertions.html#method-i-assert_reject_connection
169
+ # See https://api.rubyonrails.org/v7.0/classes/ActionCable/Connection/Assertions.html#method-i-assert_reject_connection
170
170
  #
171
171
  # :method: must_reject_connection
172
172
 
@@ -30,7 +30,7 @@ module Minitest
30
30
  # end
31
31
  #
32
32
  # See also ActionMailer::TestClass#assert_emails
33
- # See https://api.rubyonrails.org/v6.1/classes/ActionMailer/TestHelper.html#method-i-assert_emails
33
+ # See https://api.rubyonrails.org/v7.0/classes/ActionMailer/TestHelper.html#method-i-assert_emails
34
34
  #
35
35
  # :method: must_have_emails
36
36
  # :call-seq: must_have_emails(number, &block)
@@ -56,7 +56,7 @@ module Minitest
56
56
  # must_have_emails 0, &block
57
57
  #
58
58
  # See also ActionMailer::TestClass#wont_have_emails
59
- # See https://api.rubyonrails.org/v6.1/classes/ActionMailer/TestHelper.html#method-i-assert_no_emails
59
+ # See https://api.rubyonrails.org/v7.0/classes/ActionMailer/TestHelper.html#method-i-assert_no_emails
60
60
  #
61
61
  # :method: wont_have_emails
62
62
  # :call-seq: wont_have_emails(&block)
@@ -88,7 +88,7 @@ module Minitest
88
88
  # end
89
89
  #
90
90
  # See also ActionMailer::TestClass#assert_enqueued_emails
91
- # See https://api.rubyonrails.org/v6.1/classes/ActionMailer/TestHelper.html#method-i-assert_enqueued_emails
91
+ # See https://api.rubyonrails.org/v7.0/classes/ActionMailer/TestHelper.html#method-i-assert_enqueued_emails
92
92
  #
93
93
  # :method: must_have_enqueued_emails
94
94
  # :call-seq: must_have_enqueued_emails(number, &block)
@@ -126,7 +126,7 @@ module Minitest
126
126
  # end
127
127
  #
128
128
  # See also ActionMailer::TestClass#assert_enqueued_email_with
129
- # See https://api.rubyonrails.org/v6.1/classes/ActionMailer/TestHelper.html#method-i-assert_enqueued_email_with
129
+ # See https://api.rubyonrails.org/v7.0/classes/ActionMailer/TestHelper.html#method-i-assert_enqueued_email_with
130
130
  #
131
131
  # :method: must_enqueue_email_with
132
132
  # :call-seq: must_enqueue_email_with(mailer, method, args: nil, queue: "mailers", &block)
@@ -149,7 +149,7 @@ module Minitest
149
149
  # end
150
150
  #
151
151
  # See also ActionMailer::TestClass#assert_no_enqueued_emails
152
- # See https://api.rubyonrails.org/v6.1/classes/ActionMailer/TestHelper.html#method-i-assert_no_enqueued_emails
152
+ # See https://api.rubyonrails.org/v7.0/classes/ActionMailer/TestHelper.html#method-i-assert_no_enqueued_emails
153
153
  #
154
154
  # :method: wont_have_enqueued_emails
155
155
  # :call-seq: wont_have_enqueued_emails(&block)
@@ -12,7 +12,7 @@ module Minitest
12
12
  # end }.must_change "User.count", from: 5, to: 8
13
13
  #
14
14
  # See also ActiveSupport::TestCase#assert_difference
15
- # See https://api.rubyonrails.org/v6.1/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_changes
15
+ # See https://api.rubyonrails.org/v7.0/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_changes
16
16
  #
17
17
  # :method: must_change
18
18
  # :args: expression, from: UNTRACKED, to: UNTRACKED
@@ -27,7 +27,7 @@ module Minitest
27
27
  # end
28
28
  #
29
29
  # See also ActiveSupport::TestCase#assert_difference
30
- # See https://api.rubyonrails.org/v6.1/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_no_changes
30
+ # See https://api.rubyonrails.org/v7.0/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_no_changes
31
31
  #
32
32
  # :method: wont_change
33
33
  # :args: expression
@@ -43,7 +43,7 @@ module Minitest
43
43
  # end }.must_differ "User.count", 3
44
44
  #
45
45
  # See also ActiveSupport::TestCase#assert_difference
46
- # See https://api.rubyonrails.org/v6.1/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_difference
46
+ # See https://api.rubyonrails.org/v7.0/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_difference
47
47
  #
48
48
  # :method: must_differ
49
49
  # :args: expression, *args
@@ -56,7 +56,7 @@ module Minitest
56
56
  # value { User.new }.wont_differ "User.count"
57
57
  #
58
58
  # See also ActiveSupport::TestCase#refute_difference
59
- # See https://api.rubyonrails.org/v6.1/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_no_difference
59
+ # See https://api.rubyonrails.org/v7.0/classes/ActiveSupport/Testing/Assertions.html#method-i-assert_no_difference
60
60
  #
61
61
  # :method: wont_differ
62
62
  # :args: expression
@@ -17,12 +17,12 @@ module Minitest
17
17
  # This module is a placeholder for all the Test classes created using the
18
18
  # spec DSL. Normally all classes are created but not assigned to a constant.
19
19
  # This module is where constants will be created for these classes.
20
- module SpecTests #:nodoc:
20
+ module SpecTests # :nodoc:
21
21
  end
22
22
  end
23
23
  end
24
24
 
25
- module Kernel #:nodoc:
25
+ module Kernel # :nodoc:
26
26
  alias describe_before_minitest_spec_constant_fix describe
27
27
  private :describe_before_minitest_spec_constant_fix
28
28
  def describe *args, &block
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Rails
3
- VERSION = "6.1.1".freeze
3
+ VERSION = "7.0.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.1
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-27 00:00:00.000000000 Z
11
+ date: 2022-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -30,42 +30,42 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 6.1.0
33
+ version: 7.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 6.1.0
40
+ version: 7.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest-autotest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
47
+ version: '1.1'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.0'
54
+ version: '1.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest-focus
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.1'
61
+ version: '1.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.1'
68
+ version: '1.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: minitest-rg
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,28 +86,28 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '6.0'
89
+ version: '6.4'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '6.0'
96
+ version: '6.4'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.64.0
103
+ version: 1.28.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.64.0
110
+ version: 1.28.0
111
111
  description: Adds Minitest as the default testing library in Rails
112
112
  email:
113
113
  - mike@blowmage.com
@@ -181,7 +181,8 @@ files:
181
181
  homepage: http://blowmage.com/minitest-rails
182
182
  licenses:
183
183
  - MIT
184
- metadata: {}
184
+ metadata:
185
+ rubygems_mfa_required: 'true'
185
186
  post_install_message:
186
187
  rdoc_options: []
187
188
  require_paths:
@@ -190,14 +191,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
190
191
  requirements:
191
192
  - - ">="
192
193
  - !ruby/object:Gem::Version
193
- version: 2.5.0
194
+ version: 2.7.0
194
195
  required_rubygems_version: !ruby/object:Gem::Requirement
195
196
  requirements:
196
197
  - - ">="
197
198
  - !ruby/object:Gem::Version
198
199
  version: '0'
199
200
  requirements: []
200
- rubygems_version: 3.4.12
201
+ rubygems_version: 3.1.6
201
202
  signing_key:
202
203
  specification_version: 4
203
204
  summary: Minitest integration for Rails