diff --git a/Library/Homebrew/test/test_diagnostic.rb b/Library/Homebrew/test/test_diagnostic.rb index 07bae8329e..d53747bc55 100644 --- a/Library/Homebrew/test/test_diagnostic.rb +++ b/Library/Homebrew/test/test_diagnostic.rb @@ -61,7 +61,7 @@ class DiagnosticChecksTest < Homebrew::TestCase mod = HOMEBREW_REPOSITORY.stat.mode & 0777 HOMEBREW_REPOSITORY.chmod 0555 - assert_match "The #{HOMEBREW_REPOSITORY} is not writable.", + assert_match "#{HOMEBREW_REPOSITORY} is not writable.", @checks.check_access_homebrew_repository ensure HOMEBREW_REPOSITORY.chmod mod