Merge pull request #15881 from samford/livecheck/guard-watchlist-test

dev-cmd/livecheck: avoid watchlist in test
This commit is contained in:
Mike McQuaid 2023-08-16 20:38:31 +01:00 committed by GitHub
commit 1b2294e3b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ describe "brew livecheck" do
end
it "gives an error when no arguments are given and there's no watchlist", :integration_test do
expect { brew "livecheck" }
expect { brew "livecheck", "HOMEBREW_LIVECHECK_WATCHLIST" => ".this_should_not_exist" }
.to output(/Invalid usage: A watchlist file is required when no arguments are given\./).to_stderr
.and not_to_output.to_stdout
.and be_a_failure