Expand dev-cmd/livecheck tests

This commit is contained in:
Sam Ford 2020-12-19 23:02:42 -05:00
parent ffc5c3206e
commit c7080ba812
No known key found for this signature in database
GPG Key ID: 95209E46C7FFDEFE

View File

@ -21,4 +21,11 @@ describe "brew livecheck", :integration_test do
.and not_to_output.to_stderr .and not_to_output.to_stderr
.and be_a_success .and be_a_success
end end
it "gives an error when no arguments are given and there's no watchlist" do
expect { brew "livecheck" }
.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
end
end end