diff options
Diffstat (limited to 'tests/describe.bats')
| -rw-r--r-- | tests/describe.bats | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/describe.bats b/tests/describe.bats index 1541974..1ac58ff 100644 --- a/tests/describe.bats +++ b/tests/describe.bats @@ -5,6 +5,13 @@ [[ ${lines[1]} =~ "Browse the World Wide Web" ]] } +@test "Desktop file names containing single quotes can be processed" { + run env XDG_CONFIG_HOME=./data/config ../sway-launcher-desktop.sh describe desktop "./data/desktop-files/0/applications/Sid Meier's Civilization IV.desktop" + [ "$status" -eq 0 ] + [[ ${lines[0]} =~ "Sid Meier's Civilization IV" ]] + [[ ${lines[1]} =~ "Play Civ5" ]] +} + @test "Name and description of ls command should be given" { run env XDG_CONFIG_HOME=./data/config ../sway-launcher-desktop.sh describe command ls [ "$status" -eq 0 ] |
