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"