Skip to content

Commit 5b27fe4

Browse files
Bump rubocop-minitest from 0.34.4 to 0.35.0 (#2918)
* Bump rubocop-minitest from 0.34.4 to 0.35.0 Bumps [rubocop-minitest](https://github.com/rubocop/rubocop-minitest) from 0.34.4 to 0.35.0. - [Release notes](https://github.com/rubocop/rubocop-minitest/releases) - [Changelog](https://github.com/rubocop/rubocop-minitest/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop-minitest@v0.34.4...v0.35.0) --- updated-dependencies: - dependency-name: rubocop-minitest dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Run rubocop's autocorrectable command --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Stefanni Brasil <[email protected]>
1 parent a21875f commit 5b27fe4

File tree

75 files changed

+1197
-1197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1197
-1197
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ gem 'minitest', '5.22.3'
1010
gem 'pry', '0.14.2'
1111
gem 'rake', '13.1.0'
1212
gem 'rubocop', '1.62.1'
13-
gem 'rubocop-minitest', '0.34.4'
13+
gem 'rubocop-minitest', '0.35.0'
1414
gem 'rubocop-rake', '0.6.0'
1515
gem 'simplecov', '0.22.0'
1616
gem 'test-unit', '3.6.2'

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ GEM
4444
unicode-display_width (>= 2.4.0, < 3.0)
4545
rubocop-ast (1.31.2)
4646
parser (>= 3.3.0.4)
47-
rubocop-minitest (0.34.4)
48-
rubocop (>= 1.39, < 2.0)
49-
rubocop-ast (>= 1.30.0, < 2.0)
47+
rubocop-minitest (0.35.0)
48+
rubocop (>= 1.61, < 2.0)
49+
rubocop-ast (>= 1.31.1, < 2.0)
5050
rubocop-rake (0.6.0)
5151
rubocop (~> 1.0)
5252
ruby-progressbar (1.13.0)
@@ -73,7 +73,7 @@ DEPENDENCIES
7373
pry (= 0.14.2)
7474
rake (= 13.1.0)
7575
rubocop (= 1.62.1)
76-
rubocop-minitest (= 0.34.4)
76+
rubocop-minitest (= 0.35.0)
7777
rubocop-rake (= 0.6.0)
7878
simplecov (= 0.22.0)
7979
test-unit (= 3.6.2)

test/faker/default/test_array_sample_method_compat.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def test_returns_an_array_with_integer_param
3737
source = %w[foo bar baz]
3838
result = source.sample(2)
3939

40-
assert result.is_a? Array
40+
assert_kind_of Array, result
4141
assert_equal(2, result.length)
4242
assert_empty((result - source))
4343
end
@@ -46,12 +46,12 @@ def test_returns_source_array_with_integer_param_equal_or_bigger_than_source_len
4646
source = %w[foo bar]
4747
result = source.sample(2)
4848

49-
assert result.is_a? Array
49+
assert_kind_of Array, result
5050
assert_predicate((source.sort <=> result.sort), :zero?)
5151

5252
result = source.sample(3)
5353

54-
assert result.is_a? Array
54+
assert_kind_of Array, result
5555
assert_predicate((source.sort <=> result.sort), :zero?)
5656
end
5757

test/faker/default/test_faker_cannabis.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ def test_locales
5151
[nil, 'en', 'de'].each do |_locale_name|
5252
Faker::Config.locale = 'de'
5353

54-
assert Faker::Cannabis.strain.is_a? String
55-
assert Faker::Cannabis.cannabinoid_abbreviation.is_a? String
56-
assert Faker::Cannabis.cannabinoid.is_a? String
57-
assert Faker::Cannabis.terpene.is_a? String
58-
assert Faker::Cannabis.medical_use.is_a? String
59-
assert Faker::Cannabis.health_benefit.is_a? String
60-
assert Faker::Cannabis.category.is_a? String
61-
assert Faker::Cannabis.type.is_a? String
62-
assert Faker::Cannabis.buzzword.is_a? String
63-
assert Faker::Cannabis.brand.is_a? String
54+
assert_kind_of String, Faker::Cannabis.strain
55+
assert_kind_of String, Faker::Cannabis.cannabinoid_abbreviation
56+
assert_kind_of String, Faker::Cannabis.cannabinoid
57+
assert_kind_of String, Faker::Cannabis.terpene
58+
assert_kind_of String, Faker::Cannabis.medical_use
59+
assert_kind_of String, Faker::Cannabis.health_benefit
60+
assert_kind_of String, Faker::Cannabis.category
61+
assert_kind_of String, Faker::Cannabis.type
62+
assert_kind_of String, Faker::Cannabis.buzzword
63+
assert_kind_of String, Faker::Cannabis.brand
6464
end
6565
end
6666
end

test/faker/default/test_faker_color.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_hsl_color
6363
assert_equal(3, @result.length)
6464

6565
assert @result[0].between?(0, 360)
66-
assert @result[0].is_a?(Integer)
66+
assert_kind_of Integer, @result[0]
6767
assert @result[1].between?(0.0, 1.0)
6868
assert @result[2].between?(0.0, 1.0)
6969
end

test/faker/default/test_faker_commerce.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ def test_price_with_srand
9191
end
9292

9393
def test_price_is_float
94-
assert @tester.price.is_a? Float
94+
assert_kind_of Float, @tester.price
9595
end
9696

9797
def test_when_as_string_is_true
98-
assert @tester.price(range: 0..100.0, as_string: true).is_a?(String)
98+
assert_kind_of String, @tester.price(range: 0..100.0, as_string: true)
9999
assert_includes @tester.price(range: 100..500.0, as_string: true), '.'
100100
end
101101

test/faker/default/test_faker_construction.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ def test_locales
3535
[nil, 'en'].each do |locale_name|
3636
Faker::Config.locale = locale_name
3737

38-
assert Faker::Construction.material.is_a? String
39-
assert Faker::Construction.subcontract_category.is_a? String
40-
assert Faker::Construction.standard_cost_code.is_a? String
41-
assert Faker::Construction.trade.is_a? String
42-
assert Faker::Construction.role.is_a? String
43-
assert Faker::Construction.heavy_equipment.is_a? String
38+
assert_kind_of String, Faker::Construction.material
39+
assert_kind_of String, Faker::Construction.subcontract_category
40+
assert_kind_of String, Faker::Construction.standard_cost_code
41+
assert_kind_of String, Faker::Construction.trade
42+
assert_kind_of String, Faker::Construction.role
43+
assert_kind_of String, Faker::Construction.heavy_equipment
4444
end
4545
end
4646
end

test/faker/default/test_faker_date.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def test_return_type
8888
random_between = @tester.between(from: Date.today, to: Date.today + 5)
8989

9090
[random_forward, random_backward, random_between].each do |result|
91-
assert result.is_a?(Date), "Expected a Date object, but got #{result.class}"
91+
assert_kind_of Date, result, "Expected a Date object, but got #{result.class}"
9292
end
9393
end
9494

test/faker/default/test_faker_internet.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def test_email_with_no_arguments
1919

2020
domain_name, domain_suffix = domain.split('.')
2121

22-
assert name.is_a? String
23-
assert domain_name.is_a? String
22+
assert_kind_of String, name
23+
assert_kind_of String, domain_name
2424
assert_includes(%w[example test], domain_suffix)
2525
end
2626
end
@@ -31,7 +31,7 @@ def test_email_name_with_non_permitted_characters
3131
domain_name, domain_suffix = domain.split('.')
3232

3333
assert_equal('mart#n', name)
34-
assert domain_name.is_a? String
34+
assert_kind_of String, domain_name
3535
assert_includes(%w[example test], domain_suffix)
3636
end
3737
end
@@ -42,7 +42,7 @@ def test_email_with_separators
4242
domain_name, domain_suffix = domain.split('.')
4343

4444
assert_match(/(jane\+doe|doe\+jane)/, name)
45-
assert domain_name.is_a? String
45+
assert_kind_of String, domain_name
4646
assert_includes(%w[example test], domain_suffix)
4747
end
4848
end
@@ -53,7 +53,7 @@ def test_email_with_domain_name_option_given
5353
name, domain = result.split('@')
5454
domain_name, domain_suffix = domain.split('.')
5555

56-
assert name.is_a? String
56+
assert_kind_of String, name
5757
assert_equal('customdomain', domain_name)
5858
assert_includes(%w[example test], domain_suffix)
5959
end
@@ -62,7 +62,7 @@ def test_email_with_full_domain_option_given
6262
deterministically_verify -> { @tester.email(domain: 'customdomain.org') } do |result|
6363
name, domain = result.split('@')
6464

65-
assert name.is_a? String
65+
assert_kind_of String, name
6666
assert_equal('customdomain.org', domain)
6767
end
6868
end
@@ -314,7 +314,7 @@ def test_deterministic_password_with_compatible_min_length_and_requirements
314314
def test_domain_name_without_subdomain
315315
domain_name, domain_suffix = @tester.domain_name.split('.')
316316

317-
assert domain_name.is_a? String
317+
assert_kind_of String, domain_name
318318
assert_includes(%w[example test], domain_suffix)
319319
end
320320

@@ -323,8 +323,8 @@ def test_domain_name_with_subdomain
323323
subdomain: true
324324
).split('.')
325325

326-
assert domain_name.is_a? String
327-
assert subdomain.is_a? String
326+
assert_kind_of String, domain_name
327+
assert_kind_of String, subdomain
328328
assert_includes(%w[example test], domain_suffix)
329329
end
330330

@@ -334,7 +334,7 @@ def test_domain_name_with_subdomain_and_with_domain_name_option_given
334334
domain: 'customdomain'
335335
).split('.')
336336

337-
assert subdomain.is_a? String
337+
assert_kind_of String, subdomain
338338
assert_equal 'customdomain', domain_name
339339
assert_includes(%w[example test], domain_suffix)
340340
end
@@ -345,7 +345,7 @@ def test_domain_name_with_subdomain_and_with_full_domain_option_given
345345
domain: 'faker-ruby.org'
346346
).split('.')
347347

348-
assert subdomain.is_a? String
348+
assert_kind_of String, subdomain
349349
assert_equal 'faker-ruby', domain_name
350350
assert_equal 'org', domain_suffix
351351
end

test/faker/default/test_faker_lorem.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_words_with_large_count_params
132132
end
133133

134134
def test_multibyte
135-
assert @tester.multibyte.is_a? String
135+
assert_kind_of String, @tester.multibyte
136136
assert_includes %w[😀 😡], @tester.multibyte
137137
end
138138

0 commit comments

Comments
 (0)