Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Clean up main feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Oct 22, 2011
1 parent 40eb3a8 commit ef026fc
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions features/kumade_executable.feature
Expand Up @@ -36,7 +36,7 @@ Feature: Kumade executable
When I run kumade with "-p"
Then the output should contain "==> Deployed to: staging"

Scenario: Can deploy to arbitrary environment
Scenario: Deploying to an arbitrary environment fails
When I run kumade with "bamboo"
Then the output should contain "==> Deploying to: bamboo"
And the output should match /Cannot deploy: /
Expand All @@ -45,19 +45,8 @@ Feature: Kumade executable
When I run kumade with "bad-remote"
Then the output should match /==> ! Cannot deploy: "bad-remote" remote does not point to Heroku/

Scenario: Deploy from another branch
Scenario: Deploy from a branch that isn't "master"
When I run `git checkout -b new_branch`
And I run kumade with "pretend-staging -p"
Then the output should contain:
"""
==> Git repo is clean
==> Packaged with Kumade::JammitPackager
git push origin new_branch
==> Pushed new_branch -> origin
git branch deploy >/dev/null
git push -f pretend-staging deploy:master
==> Pushed deploy:master -> pretend-staging
==> Migrated pretend-staging
==> Restarted pretend-staging
==> Deployed to: pretend-staging
"""
Then the output should contain "==> Pushed new_branch -> origin"
And the output should contain "==> Deployed to: pretend-staging"

0 comments on commit ef026fc

Please sign in to comment.