Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Test for git cleanliness conditions

  • Loading branch information...
commit 39fd463fc727ee829d24723ce07ddb8aa4ccc9cc 1 parent 9d5fe70
Gabe Berke-Williams gabebw authored

Showing 1 changed file with 19 additions and 0 deletions. Show diff stats Hide diff stats

  1. +19 0 features/kumade_executable.feature
19 features/kumade_executable.feature
@@ -66,3 +66,22 @@ Feature: Kumade executable
66 66 run git checkout new_branch && git branch -D deploy
67 67 ==> Deployed to: pretend-staging
68 68 """
  69 +
  70 + Scenario: Git is clean if there are untracked files
  71 + Given I write to "new-file" with:
  72 + """
  73 + clean
  74 + """
  75 + When I run `bundle exec kumade pretend-staging`
  76 + Then the output from "bundle exec kumade pretend-staging" should not contain "==> ! Cannot deploy: repo is not clean"
  77 +
  78 + Scenario: Git is not clean if a tracked file is modified
  79 + Given I write to "new-file" with:
  80 + """
  81 + clean
  82 + """
  83 + And I successfully run `git add .`
  84 + And I successfully run `git commit -am 'Add new file'`
  85 + When I append to "new-file" with "dirty it up"
  86 + And I run `bundle exec kumade pretend-staging`
  87 + Then the output from "bundle exec kumade pretend-staging" should contain "==> ! Cannot deploy: repo is not clean"

0 comments on commit 39fd463

Please sign in to comment.
Something went wrong with that request. Please try again.