Skip to content

Commit 281f00f

Browse files
Exercise dbxcli command in Homebrew test
1 parent 9000565 commit 281f00f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packaging/homebrew/dbxcli.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ def install
1414
end
1515

1616
test do
17-
assert_match "dbxcli version: #{version}", shell_output("#{bin}/dbxcli version")
17+
ENV.delete "DBXCLI_ACCESS_TOKEN"
18+
ENV["DBXCLI_AUTH_FILE"] = testpath/"missing-auth.json"
19+
output = shell_output("#{bin}/dbxcli ls 2>&1", 1)
20+
assert_match "no saved Dropbox credentials", output
1821
end
1922
end

0 commit comments

Comments
 (0)