Skip to content

Commit 4ac3da1

Browse files
author
emmanuel.john
committed
granted: add functional tests for assume and assumego
Address reviewer feedback: verify assume and assumego commands work instead of just checking file existence.
1 parent 8630f61 commit 4ac3da1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Formula/g/granted.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ def install
3131
output = shell_output("#{bin}/granted auth configure 2>&1", 1)
3232
assert_match "[✘] please provide a url argument", output
3333

34-
assert_path_exists bin/"assume"
35-
assert_path_exists bin/"assumego"
34+
ENV["GRANTED_ALIAS_CONFIGURED"] = "true"
35+
assert_match version.to_s, shell_output("#{bin}/assume --version")
36+
assert_match version.to_s, shell_output("#{bin}/assumego --version")
3637
assert_path_exists bin/"assume.fish"
3738
end
3839
end

0 commit comments

Comments
 (0)