From c9a35e7f1e6e29a2c50db5f32582b3b1471eed2d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 6 Jan 2016 23:22:18 +0100 Subject: [PATCH] bdd: Add a test for :follow-selected --tab --- tests/integration/features/caret.feature | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/integration/features/caret.feature b/tests/integration/features/caret.feature index c0351870b..2733768ae 100644 --- a/tests/integration/features/caret.feature +++ b/tests/integration/features/caret.feature @@ -294,3 +294,14 @@ Feature: Caret mode And I run :move-to-end-of-word And I run :follow-selected Then data/hello.txt should be loaded + + Scenario: :follow-selected with --tab + When I run :tab-only + And I run :enter-mode caret + And I run :toggle-selection + And I run :move-to-end-of-word + And I run :follow-selected --tab + Then data/hello.txt should be loaded + And the following tabs should be open: + - data/caret.html + - data/hello.txt (active)