Skip to content
Snippets Groups Projects
Commit 46f6dc4c authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #2446 from mansimarkaur/diagnostic_tests

[WIP] Added test for check_access_lock_dir
parents 02f01893 7e455a62
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,18 @@ describe Homebrew::Diagnostic::Checks do
end
end
specify "#check_access_lock_dir" do
begin
mode = HOMEBREW_LOCK_DIR.stat.mode & 0777
HOMEBREW_LOCK_DIR.chmod 0555
expect(subject.check_access_lock_dir)
.to match("#{HOMEBREW_LOCK_DIR} isn't writable.")
ensure
HOMEBREW_LOCK_DIR.chmod mode
end
end
specify "#check_access_logs" do
begin
mode = HOMEBREW_LOGS.stat.mode & 0777
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment