Skip to content

Commit

Permalink
snippets: add examples snippet; pre-populate giv/whe/the snippets; ch…
Browse files Browse the repository at this point in the history
…ange fea's user narrative language to be As a role, I need, so that
  • Loading branch information
Ben Hochstedler committed Nov 19, 2016
1 parent b4324ff commit 088f8a8
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
3 changes: 1 addition & 2 deletions snippets/feature-mode/bac
Expand Up @@ -4,5 +4,4 @@
# expand-env: ((yas-indent-line 'fixed))
# --
Background:
Given ${1: a known starting condition}
$0
giv$0
6 changes: 6 additions & 0 deletions snippets/feature-mode/exa
@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# key: exa
# name: Examples
# --
Examples:
| ${1:column_title} $0
7 changes: 4 additions & 3 deletions snippets/feature-mode/fea
Expand Up @@ -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
2 changes: 1 addition & 1 deletion snippets/feature-mode/giv
Expand Up @@ -3,4 +3,4 @@
# name: Given a known starting condition
# --
Given ${1:a known starting condition}
$0
whe$0
2 changes: 1 addition & 1 deletion snippets/feature-mode/sce
Expand Up @@ -4,4 +4,4 @@
# expand-env: ((yas-indent-line 'fixed))
# --
Scenario: ${1:Name}
$0
giv$0
2 changes: 1 addition & 1 deletion snippets/feature-mode/whe
Expand Up @@ -3,4 +3,4 @@
# name: When some action
# --
When ${1:some action}
$0
the$0

0 comments on commit 088f8a8

Please sign in to comment.