Skip to content

Commit

Permalink
fix error assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
ddollar committed Jun 21, 2012
1 parent f6af8d8 commit ef979ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vendor/test-utils/test-utils
Expand Up @@ -113,8 +113,9 @@ assertCapturedError()
assertTrue "Expected captured exit code to be <${expectedErrorCode}>; was <${RETURN}>" "[ ${RETURN} -eq ${expectedErrorCode} ]" assertTrue "Expected captured exit code to be <${expectedErrorCode}>; was <${RETURN}>" "[ ${RETURN} -eq ${expectedErrorCode} ]"
fi fi


assertFileContains "Expected STD_OUT to contain error <${expectedErrorMsg}>" "${expectedErrorMsg}" "${STD_OUT}" if [ "${expectedErrorMsg}" != "" ]; then
assertEquals "STD_ERR should always be empty" "" "$(cat ${STD_ERR})" assertFileContains "Expected STD_ERR to contain error <${expectedErrorMsg}>" "${expectedErrorMsg}" "${STD_ERR}"
fi
} }


assertAppDetected() assertAppDetected()
Expand Down

0 comments on commit ef979ea

Please sign in to comment.