File tree Expand file tree Collapse file tree 7 files changed +14
-14
lines changed
test/lib/skunk/rubycritic Expand file tree Collapse file tree 7 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-latest
15
15
16
16
steps :
17
- - uses : actions/checkout@v1
17
+ - uses : actions/checkout@v2
18
18
- name : Setup Ruby
19
19
uses : ruby/setup-ruby@v1
20
20
with :
31
31
runs-on : ubuntu-latest
32
32
33
33
steps :
34
- - uses : actions/checkout@v1
34
+ - uses : actions/checkout@v2
35
35
- name : Setup Ruby
36
36
uses : ruby/setup-ruby@v1
37
37
with :
46
46
runs-on : ubuntu-latest
47
47
48
48
steps :
49
- - uses : actions/checkout@v1
49
+ - uses : actions/checkout@v2
50
50
- name : Setup Ruby
51
51
uses : ruby/setup-ruby@v1
52
52
with :
61
61
runs-on : ubuntu-latest
62
62
63
63
steps :
64
- - uses : actions/checkout@v1
64
+ - uses : actions/checkout@v2
65
65
- name : Setup Ruby
66
66
uses : ruby/setup-ruby@v1
67
67
with :
76
76
runs-on : ubuntu-latest
77
77
78
78
steps :
79
- - uses : actions/checkout@v1
79
+ - uses : actions/checkout@v2
80
80
- name : Setup Ruby
81
81
uses : ruby/setup-ruby@v1
82
82
with :
91
91
runs-on : ubuntu-latest
92
92
93
93
steps :
94
- - uses : actions/checkout@v1
94
+ - uses : actions/checkout@v2
95
95
- name : Setup Ruby
96
96
uses : ruby/setup-ruby@v1
97
97
with :
@@ -101,4 +101,4 @@ jobs:
101
101
run : |
102
102
gem install bundler
103
103
bundle install --jobs 4 --retry 3
104
- bundle exec rake
104
+ bundle exec rake
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
## main [ (unreleased)] ( https://github.com/fastruby/skunk/compare/v0.5.2...HEAD )
9
9
10
10
* <INSERT YOUR FEATURE OR BUGFIX HERE >
11
+ * [ BUGFIX: Fix analized module test] ( https://github.com/fastruby/skunk/pull/98 )
12
+
11
13
## v0.5.2 / 2022-04-27 [ (commits)] ( https://github.com/fastruby/skunk/compare/v0.5.1...v0.5.2 )
12
14
13
15
* [ FEATURE: Support more rubies] ( https://github.com/fastruby/skunk/pull/92 )
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def table_options
75
75
width = max . pathname . to_s . length + HEADINGS_WITHOUT_FILE_WIDTH
76
76
{
77
77
style : {
78
- width : width # rubocop:disable Style/HashSyntax
78
+ width : width
79
79
}
80
80
}
81
81
end
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ def base_url
38
38
ENV [ "SHARE_URL" ] || DEFAULT_URL
39
39
end
40
40
41
- # rubocop:disable Style/HashSyntax
42
41
def json_summary
43
42
result = {
44
43
total_skunk_score : total_skunk_score ,
@@ -56,7 +55,6 @@ def json_summary
56
55
57
56
result
58
57
end
59
- # rubocop:enable Style/HashSyntax
60
58
61
59
def json_results
62
60
sorted_modules . map ( &:to_hash )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def parse # rubocop:disable Metrics/MethodLength
37
37
end
38
38
39
39
def to_h
40
- super . merge ( output_filename : output_filename ) # rubocop:disable Style/HashSyntax
40
+ super . merge ( output_filename : output_filename )
41
41
end
42
42
end
43
43
end
Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ def churn_times_cost
53
53
# - coverage
54
54
#
55
55
# @return [Hash]
56
- # rubocop:disable Style/HashSyntax
57
56
def to_hash
58
57
{
59
58
file : pathname . to_s ,
@@ -64,6 +63,5 @@ def to_hash
64
63
coverage : coverage . round ( 2 )
65
64
}
66
65
end
67
- # rubocop:enable Style/HashSyntax
68
66
end
69
67
end
Original file line number Diff line number Diff line change 68
68
end
69
69
70
70
it "returns a hash with all the attributes and values" do
71
- _ ( @analysed_module . to_hash ) . must_equal result
71
+ @analysed_module . stub ( :churn , 5 ) do
72
+ _ ( @analysed_module . to_hash ) . must_equal result
73
+ end
72
74
end
73
75
end
74
76
end
You can’t perform that action at this time.
0 commit comments