From b5b46332c78eb477e2ffaa22c583867e778ded99 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 9 Sep 2016 17:52:20 +0200 Subject: [PATCH] Add test for downloading to an inexistent dir --- tests/end2end/features/downloads.feature | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/end2end/features/downloads.feature b/tests/end2end/features/downloads.feature index fae41a428..f2f1d944a 100644 --- a/tests/end2end/features/downloads.feature +++ b/tests/end2end/features/downloads.feature @@ -135,6 +135,10 @@ Feature: Downloading things from a website. When I run :download --mhtml http://foobar/ Then the error "Can only download the current page as mhtml." should be shown + Scenario: :download with a directory which doesn't exist + When I run :download --dest (tmpdir)/somedir/filename http://localhost:(port)/ + Then the error "Download error: No such file or directory" should be shown + ## mhtml downloads Scenario: Downloading as mhtml is available