Skip to content

Commit

Permalink
ci: Update test to use echo instead of cowsay
Browse files Browse the repository at this point in the history
Signed-off-by: Drew Robinson <[email protected]>
  • Loading branch information
ocean committed Sep 5, 2024
1 parent 2c236e0 commit 92d0806
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
command: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.46.2
- run:
name: Install PHP for testing.
command: sudo apt update && sudo apt install php8.1 cowsay
command: sudo apt update && sudo apt install php8.1
- go/load-cache
- go/mod-download
- run:
Expand Down
6 changes: 3 additions & 3 deletions testdata/command-aliases.ahoy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ commands:
cmd: echo "Hello, World!"
aliases: ["hi", "greet", "ahoy"]

cowsay:
usage: A cow says "ahoy!"
cmd: cowsay "ahoy there!"
ahoy-there:
usage: Say "ahoy there!"
cmd: echo "ahoy there!"
aliases: ["ahoy"]
4 changes: 2 additions & 2 deletions tests/command-aliases.bats
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ load 'test_helpers/bats-assert/load'
[ "$status" -eq 1 ]
}

@test "A cow says ahoy" {
run ./ahoy -f testdata/command-aliases.ahoy.yml cowsay
@test "Say ahoy there" {
run ./ahoy -f testdata/command-aliases.ahoy.yml ahoy-there
[[ "$output" =~ "ahoy there!" ]]
[ "$status" -eq 0 ]

Expand Down

0 comments on commit 92d0806

Please sign in to comment.