From 9527712daa2bb135cc960f971abcaa9651e9d165 Mon Sep 17 00:00:00 2001 From: Panagiotis Ktistakis Date: Sat, 14 May 2016 18:44:05 +0300 Subject: [PATCH] Add tests for {url:pretty} in :set-cmd-text --- tests/integration/features/misc.feature | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/integration/features/misc.feature b/tests/integration/features/misc.feature index d2edfa4b3..1356a3cf3 100644 --- a/tests/integration/features/misc.feature +++ b/tests/integration/features/misc.feature @@ -15,10 +15,22 @@ Feature: Various utility commands. Scenario: :set-cmd-text with URL replacement When I open data/hello.txt - When I run :set-cmd-text :message-info {url} + And I run :set-cmd-text :message-info {url} And I run :command-accept Then the message "http://localhost:*/hello.txt" should be shown + Scenario: :set-cmd-text with URL replacement with encoded spaces + When I open data/title with spaces.html + And I run :set-cmd-text :message-info {url} + And I run :command-accept + Then the message "http://localhost:*/title%20with%20spaces.html" should be shown + + Scenario: :set-cmd-text with URL replacement with decoded spaces + When I open data/title with spaces.html + And I run :set-cmd-text :message-info "> {url:pretty} <" + And I run :command-accept + Then the message "> http://localhost:*/title with spaces.html <" should be shown + Scenario: :set-cmd-text with -s and -a When I run :set-cmd-text -s :message-info "foo And I run :set-cmd-text -a bar"