diff --git a/Library/Homebrew/cask/auditor.rb b/Library/Homebrew/cask/auditor.rb index c631f1e5b7..ab42a0a492 100644 --- a/Library/Homebrew/cask/auditor.rb +++ b/Library/Homebrew/cask/auditor.rb @@ -50,7 +50,7 @@ module Cask if !language && language_blocks sample_languages = if language_blocks.length > LANGUAGE_BLOCK_LIMIT && !@audit_new_cask sample_keys = language_blocks.keys.sample(LANGUAGE_BLOCK_LIMIT) - ohai "Auditing a sample of available languages: #{sample_keys.map { |lang| lang[0].to_s }.to_sentence}" + ohai "Auditing a sample of available languages for #{cask}: #{sample_keys.map { |lang| lang[0].to_s }.to_sentence}" language_blocks.select { |k| sample_keys.include?(k) } else language_blocks diff --git a/Library/Homebrew/test/dev-cmd/audit_spec.rb b/Library/Homebrew/test/dev-cmd/audit_spec.rb index 88ddb2ad2e..64df3df3d4 100644 --- a/Library/Homebrew/test/dev-cmd/audit_spec.rb +++ b/Library/Homebrew/test/dev-cmd/audit_spec.rb @@ -415,7 +415,7 @@ module Homebrew EOS end - it "checks online and verifies that a standard license id is in the same exempted license group" \ + it "checks online and verifies that a standard license id is in the same exempted license group " \ "as what is indicated on its GitHub repo", :needs_network do fa = formula_auditor "cask", <<~RUBY, spdx_license_data: spdx_license_data, online: true, new_formula: true class Cask < Formula @@ -429,7 +429,7 @@ module Homebrew expect(fa.problems).to be_empty end - it "checks online and verifies that a standard license array is in the same exempted license group" \ + it "checks online and verifies that a standard license array is in the same exempted license group " \ "as what is indicated on its GitHub repo", :needs_network do fa = formula_auditor "cask", <<~RUBY, spdx_license_data: spdx_license_data, online: true, new_formula: true class Cask < Formula diff --git a/Library/Homebrew/test/software_spec_spec.rb b/Library/Homebrew/test/software_spec_spec.rb index 52b14b72fb..069856c2a9 100644 --- a/Library/Homebrew/test/software_spec_spec.rb +++ b/Library/Homebrew/test/software_spec_spec.rb @@ -210,7 +210,7 @@ describe SoftwareSpec do expect(spec.declared_deps.first).to be_use_macos_install end - it "add a macOS dependency if the OS version doesn't meet requirements" do + it "adds a macOS dependency if the OS version doesn't meet requirements" do spec.uses_from_macos("foo", since: :high_sierra) expect(spec.declared_deps).not_to be_empty diff --git a/Library/Homebrew/utils/shared_audits.rb b/Library/Homebrew/utils/shared_audits.rb index 6675022cdc..5e4fbb79a0 100644 --- a/Library/Homebrew/utils/shared_audits.rb +++ b/Library/Homebrew/utils/shared_audits.rb @@ -142,7 +142,7 @@ module SharedAudits metadata = JSON.parse(out) return if metadata.nil? - return "Uses deprecated mercurial support in Bitbucket" if metadata["scm"] == "hg" + return "Uses deprecated Mercurial support in Bitbucket" if metadata["scm"] == "hg" return "Bitbucket fork (not canonical repository)" unless metadata["parent"].nil?