Skip to content

Commit bce1859

Browse files
authored
Merge pull request #197 from StackStorm/test-for-notify-errbot
Fix ChatOps tests - allow more than one ChatOps notification channels
2 parents dc2428d + 7348a8d commit bce1859

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)