Skip to content

Commit

Permalink
fix Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
Yar04ek committed Dec 4, 2023
1 parent a34e17f commit f1bf57a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/coverage/test_coverage_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def download_at(url)
def generate
method_list = JSON.parse(@api_list)
EDITORS.each do |key, type|
method_list[type].each do |_api_class, method|
method_list[type].each_value do |method|
method.reject! do |element|
MethodMatcher.new(element, SOURCES[key]).pattern_found?
end
Expand Down
4 changes: 2 additions & 2 deletions unit/test_coverage/test_coverage_result_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
hash = JSON.parse(json)
expect(hash).to be_an(Hash)
expect(hash.length).to eq(4)
hash.each do |key, _value|
hash.each_key do |key|
expect(editors.key(key)).to be_truthy
end
end
Expand All @@ -29,7 +29,7 @@
hash = JSON.parse(result_json)
expect(hash).to be_an(Hash)
expect(hash.length).to eq(4)
hash.each do |key, _value|
hash.each_key do |key|
expect(editors.key(key)).to be_truthy
end
end
Expand Down

0 comments on commit f1bf57a

Please sign in to comment.