From 7348a8d979efb74f6f1b8e25e4554a94b85b7c18 Mon Sep 17 00:00:00 2001 From: blag Date: Tue, 17 Nov 2020 17:27:23 -0800 Subject: [PATCH] Fix ChatOps tests - allow more than one ChatOps notification channels --- chatops/test_hubot.bats | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chatops/test_hubot.bats b/chatops/test_hubot.bats index c5175ae..c093cf1 100644 --- a/chatops/test_hubot.bats +++ b/chatops/test_hubot.bats @@ -35,10 +35,9 @@ load '../test_helpers/bats-assert/load' assert_output --partial "chatops.notify" - run eval "echo '$RESULTS' | jq -r '.[].enabled'" + run eval "echo '$RESULTS' | jq -r '.[] | select( (.ref == \"chatops.notify\") and .enabled == true) .ref'" assert_success - - assert_output "true" + assert_output --partial "chatops.notify" } @test "hubot help command works" {