diff --git a/lib/coverage/test_coverage_result.rb b/lib/coverage/test_coverage_result.rb index cc7c8356..e302f65b 100644 --- a/lib/coverage/test_coverage_result.rb +++ b/lib/coverage/test_coverage_result.rb @@ -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 diff --git a/unit/test_coverage/test_coverage_result_spec.rb b/unit/test_coverage/test_coverage_result_spec.rb index 13d2e59d..c050f5c6 100644 --- a/unit/test_coverage/test_coverage_result_spec.rb +++ b/unit/test_coverage/test_coverage_result_spec.rb @@ -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 @@ -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