Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

55 lines (49 sloc) 1.624 kb
Feature: Wrap Region
In order to put text between puctuations and tags
As an Emacs user
I want to wrap it
Scenario: No wrap when wrap-region is inactive
Given I add wrapper "$/$"
And I turn off wrap-region
When I insert "This is some text"
And I select "is some"
And I press "$"
Then I should not see "This $is some$ text"
But I should see "This $is some text"
Scenario: Fallback when no region selected
Given there is no region selected
When I insert "This is some text"
And I press "("
Then I should see "This is some text("
Scenario: Global mode
Given I add wrapper "$/$"
And I turn on wrap-region globally
When I open temp file "global"
And I insert "This is some text"
And I select "is some"
And I press "$"
Then I should see "This $is some$ text"
Scenario: Except modes
Given I add wrapper "$/$"
And I turn on wrap-region globally
And I add "text-mode" as an except mode
When I open temp file "global"
And I turn on text-mode
And I insert "this is some text"
And I select "is some"
And I press "("
Then I should not see "this (is some) text"
But I should see "this (is some text"
Scenario: Only wrap when prefix arg
Given I add wrapper "$/$"
And I turn on wrap-region
And I require prefix arg to wrap
Then key "$" should not wrap
When I insert "this is some text"
And I select "is some"
And I start an action chain
And I press "C-u"
And I press "10"
And I press "$"
And I execute the action chain
Then I should see "this $is some$ text"
Jump to Line
Something went wrong with that request. Please try again.