diff --git a/tests/picture.bats b/tests/picture.bats index 44909a816..7dab9536b 100755 --- a/tests/picture.bats +++ b/tests/picture.bats @@ -2,6 +2,11 @@ load test-helper @test "$clinom picture" { - run "${clicmd}" picture https://treehouses.io/images/OLE_RPi.png - assert_success -} \ No newline at end of file + run "${clicmd}" picture + assert_success && assert_output -p 'Usage:' && assert_output -p 'Views a picture in the terminal.' +} + +@test "$clinom picture foo.png (invalid image)" { + run "${clicmd}" picture HasAnyoneReallyBeenFarEvenasDecidedtoUseEvenGoWanttodoLookMoreLike.png + assert_success && assert_output -p "Can't open file (permission?):" +}