Skip to content

Commit aa1728a

Browse files
Fix unit tests (#65)
1 parent 1adcf45 commit aa1728a

File tree

5 files changed

+45
-35
lines changed

5 files changed

+45
-35
lines changed

.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby-3.2.2
1+
ruby-3.3.0

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ gem 'rubocop-minitest'
1616
gem 'rubocop-performance'
1717

1818
group :test do
19-
gem 'minitest', '~> 5.10', '!= 5.10.2'
19+
gem 'minitest'
2020
gem 'minitest-stub-const'
2121
gem 'mocha'
2222
gem 'pry'

Gemfile.lock

+42-31
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,78 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (6.1.7.5)
4+
activesupport (7.1.3.4)
5+
base64
6+
bigdecimal
57
concurrent-ruby (~> 1.0, >= 1.0.2)
8+
connection_pool (>= 2.2.5)
9+
drb
610
i18n (>= 1.6, < 2)
711
minitest (>= 5.1)
12+
mutex_m
813
tzinfo (~> 2.0)
9-
zeitwerk (~> 2.3)
1014
ast (2.4.2)
11-
base64 (0.1.1)
15+
base64 (0.2.0)
16+
bigdecimal (3.1.8)
1217
coderay (1.1.3)
13-
concurrent-ruby (1.2.3)
18+
concurrent-ruby (1.3.3)
19+
connection_pool (2.4.1)
1420
docile (1.4.0)
15-
i18n (1.14.4)
21+
drb (2.2.1)
22+
i18n (1.14.5)
1623
concurrent-ruby (~> 1.0)
17-
json (2.6.3)
24+
json (2.7.2)
1825
language_server-protocol (3.17.0.3)
19-
mandate (0.3.0)
20-
method_source (1.0.0)
21-
minitest (5.19.0)
26+
mandate (2.2.0)
27+
method_source (1.1.0)
28+
minitest (5.24.1)
2229
minitest-stub-const (0.6)
23-
mocha (1.11.2)
24-
parallel (1.23.0)
25-
parser (3.2.2.3)
30+
mocha (2.4.0)
31+
ruby2_keywords (>= 0.0.5)
32+
mutex_m (0.2.0)
33+
parallel (1.25.1)
34+
parser (3.3.3.0)
2635
ast (~> 2.4.1)
2736
racc
28-
pry (0.13.1)
37+
pry (0.14.2)
2938
coderay (~> 1.1)
3039
method_source (~> 1.0)
31-
racc (1.7.1)
40+
racc (1.8.0)
3241
rainbow (3.1.1)
33-
rake (13.0.1)
34-
regexp_parser (2.8.1)
35-
rexml (3.2.6)
36-
rubocop (1.56.0)
37-
base64 (~> 0.1.1)
42+
rake (13.2.1)
43+
regexp_parser (2.9.2)
44+
rexml (3.3.1)
45+
strscan
46+
rubocop (1.64.1)
3847
json (~> 2.3)
3948
language_server-protocol (>= 3.17.0)
4049
parallel (~> 1.10)
41-
parser (>= 3.2.2.3)
50+
parser (>= 3.3.0.2)
4251
rainbow (>= 2.2.2, < 4.0)
4352
regexp_parser (>= 1.8, < 3.0)
4453
rexml (>= 3.2.5, < 4.0)
45-
rubocop-ast (>= 1.28.1, < 2.0)
54+
rubocop-ast (>= 1.31.1, < 2.0)
4655
ruby-progressbar (~> 1.7)
4756
unicode-display_width (>= 2.4.0, < 3.0)
48-
rubocop-ast (1.29.0)
49-
parser (>= 3.2.1.0)
50-
rubocop-minitest (0.31.0)
51-
rubocop (>= 1.39, < 2.0)
52-
rubocop-performance (1.19.0)
53-
rubocop (>= 1.7.0, < 2.0)
54-
rubocop-ast (>= 0.4.0)
57+
rubocop-ast (1.31.3)
58+
parser (>= 3.3.1.0)
59+
rubocop-minitest (0.35.0)
60+
rubocop (>= 1.61, < 2.0)
61+
rubocop-ast (>= 1.31.1, < 2.0)
62+
rubocop-performance (1.21.1)
63+
rubocop (>= 1.48.1, < 2.0)
64+
rubocop-ast (>= 1.31.1, < 2.0)
5565
ruby-progressbar (1.13.0)
66+
ruby2_keywords (0.0.5)
5667
simplecov (0.17.1)
5768
docile (~> 1.1)
5869
json (>= 1.8, < 3)
5970
simplecov-html (~> 0.10.0)
6071
simplecov-html (0.10.2)
72+
strscan (3.1.0)
6173
tzinfo (2.0.6)
6274
concurrent-ruby (~> 1.0)
63-
unicode-display_width (2.4.2)
64-
zeitwerk (2.6.13)
75+
unicode-display_width (2.5.0)
6576

6677
PLATFORMS
6778
ruby
@@ -70,7 +81,7 @@ DEPENDENCIES
7081
activesupport
7182
json
7283
mandate
73-
minitest (~> 5.10, != 5.10.2)
84+
minitest
7485
minitest-stub-const
7586
mocha
7687
parser

lib/analyzers/two_fer/representation.rb

-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ def reassigns_parameter_to_you?
108108
assignment.children[1] == s(:str, "you")
109109
end
110110

111-
private
112111
memoize
113112
def parameters
114113
target_method.arguments

test/test_helper.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
require "minitest/autorun"
1010
require 'minitest/pride'
11-
require "mocha/setup"
11+
require "mocha/minitest"
1212

1313
class Minitest::Test
1414
SAFE_WRITE_PATH = Pathname.new('/tmp/output')

0 commit comments

Comments
 (0)