Skip to content

Commit 7348a8d

Browse files
committed
Fix ChatOps tests - allow more than one ChatOps notification channels
1 parent dc2428d commit 7348a8d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

chatops/test_hubot.bats

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ load '../test_helpers/bats-assert/load'
3535

3636
assert_output --partial "chatops.notify"
3737

38-
run eval "echo '$RESULTS' | jq -r '.[].enabled'"
38+
run eval "echo '$RESULTS' | jq -r '.[] | select( (.ref == \"chatops.notify\") and .enabled == true) .ref'"
3939
assert_success
40-
41-
assert_output "true"
40+
assert_output --partial "chatops.notify"
4241
}
4342

4443
@test "hubot help command works" {

0 commit comments

Comments
 (0)