From 088f8a881b536979fdbcd1945fa4a2d5d34ff7d4 Mon Sep 17 00:00:00 2001 From: Ben Hochstedler Date: Sat, 19 Nov 2016 15:12:41 -0600 Subject: [PATCH] snippets: add examples snippet; pre-populate giv/whe/the snippets; change fea's user narrative language to be As a role, I need, so that --- snippets/feature-mode/bac | 3 +-- snippets/feature-mode/exa | 6 ++++++ snippets/feature-mode/fea | 7 ++++--- snippets/feature-mode/giv | 2 +- snippets/feature-mode/sce | 2 +- snippets/feature-mode/whe | 2 +- 6 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 snippets/feature-mode/exa diff --git a/snippets/feature-mode/bac b/snippets/feature-mode/bac index 8fc8d4e..ceca65b 100644 --- a/snippets/feature-mode/bac +++ b/snippets/feature-mode/bac @@ -4,5 +4,4 @@ # expand-env: ((yas-indent-line 'fixed)) # -- Background: - Given ${1: a known starting condition} - $0 + giv$0 diff --git a/snippets/feature-mode/exa b/snippets/feature-mode/exa new file mode 100644 index 0000000..67cc995 --- /dev/null +++ b/snippets/feature-mode/exa @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# key: exa +# name: Examples +# -- +Examples: + | ${1:column_title} $0 diff --git a/snippets/feature-mode/fea b/snippets/feature-mode/fea index 0cbece2..d728dac 100644 --- a/snippets/feature-mode/fea +++ b/snippets/feature-mode/fea @@ -4,7 +4,8 @@ # expand-env: ((yas-indent-line 'fixed)) # -- Feature: ${1:Name} - In order to ${2:get some business value} - ${3:Role} will need ${4:this sweet new feature} + As a ${2:role} + I need ${3:this feature} + So that ${4:I get some value} - $0 +sce$0 diff --git a/snippets/feature-mode/giv b/snippets/feature-mode/giv index 45c1723..9140720 100644 --- a/snippets/feature-mode/giv +++ b/snippets/feature-mode/giv @@ -3,4 +3,4 @@ # name: Given a known starting condition # -- Given ${1:a known starting condition} -$0 +whe$0 diff --git a/snippets/feature-mode/sce b/snippets/feature-mode/sce index f08bfa1..571b077 100644 --- a/snippets/feature-mode/sce +++ b/snippets/feature-mode/sce @@ -4,4 +4,4 @@ # expand-env: ((yas-indent-line 'fixed)) # -- Scenario: ${1:Name} - $0 + giv$0 diff --git a/snippets/feature-mode/whe b/snippets/feature-mode/whe index 922125c..59c21e4 100644 --- a/snippets/feature-mode/whe +++ b/snippets/feature-mode/whe @@ -3,4 +3,4 @@ # name: When some action # -- When ${1:some action} -$0 +the$0