Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 24 lines (19 sloc) 0.884 kb
13469e2 Gabe Berke-Williams Move git into its own feature.
gabebw authored
1 Feature: Git cleanliness
2 As a user
3 I want Kumade to check if git is clean before deploying
4 So that I don't accidentally leave leave local changes behind
5
6 Background:
7 Given a directory set up for kumade
8 When I create a Heroku remote named "pretend-staging"
9
10 Scenario: Git is clean if there are untracked files
11 When I create an untracked file
12 And I run kumade with "pretend-staging"
13 Then the output should not contain "==> ! Cannot deploy: repo is not clean"
14
15 Scenario: Git is not clean if a tracked file is modified
16 When I modify a tracked file
17 And I run kumade with "pretend-staging"
18 Then the output should contain "==> ! Cannot deploy: repo is not clean"
40eb3a8 Gabe Berke-Williams Test that Git is always clean when pretending.
gabebw authored
19
20 Scenario: Git repo is always clean when pretending
21 Given a dirty repo
22 When I run kumade with "pretend-staging -p"
23 Then the output should contain "==> Git repo is clean"
Something went wrong with that request. Please try again.