Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (tapajos:kumade (master))$ ruby -v
- ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.2.0]
- (tapajos:kumade (master))$ rake cucumber
- /Users/tapajos/.rvm/rubies/ruby-1.8.7-p352/bin/ruby -S bundle exec cucumber
- @extra-timeout @creates-remote @disable-bundler
- Feature: Kumade executable
- As a user
- I want to be able to use the kumade executable
- So I can have a better experience than Rake provides
- Background: # features/kumade_executable.feature:7
- Given a directory named "executable" # aruba-0.4.6/lib/aruba/cucumber.rb:11
- And I cd to "executable" # aruba-0.4.6/lib/aruba/cucumber.rb:43
- And I set up the Gemfile with kumade # features/step_definitions/bundler_steps.rb:16
- And I add "jammit" to the Gemfile # features/step_definitions/bundler_steps.rb:25
- And I bundle # features/step_definitions/bundler_steps.rb:1
- When I set up a git repo # features/step_definitions/git_steps.rb:9
- And I create a Heroku remote for "pretend-staging-app" named "pretend-staging" # features/step_definitions/git_steps.rb:1
- And I create a Heroku remote for "app-two" named "staging" # features/step_definitions/git_steps.rb:1
- And I create a non-Heroku remote named "bad-remote" # features/step_definitions/git_steps.rb:5
- Scenario: Pretend mode with a Heroku remote # features/kumade_executable.feature:18
- When I run kumade with "pretend-staging -p" # features/step_definitions/kumade_steps.rb:1
- Then the output should contain "In Pretend Mode" # aruba-0.4.6/lib/aruba/cucumber.rb:78
- And the output should contain: # aruba-0.4.6/lib/aruba/cucumber.rb:94
- """
- ==> Git repo is clean
- ==> Packaged assets with Jammit
- run git push origin master
- ==> Pushed master -> origin
- run git branch deploy
- run git push -f pretend-staging deploy:master
- ==> Pushed deploy:master -> pretend-staging
- ==> Migrated pretend-staging
- run git checkout master && git branch -D deploy
- ==> Deployed to: pretend-staging
- """
- But the output should not contain "==> Packaged assets with More" # aruba-0.4.6/lib/aruba/cucumber.rb:90
- Scenario: Default environment is staging # features/kumade_executable.feature:36
- When I run kumade with "-p" # features/step_definitions/kumade_steps.rb:1
- Then the output should contain "==> Deployed to: staging" # aruba-0.4.6/lib/aruba/cucumber.rb:78
- Scenario: Can deploy to arbitrary environment # features/kumade_executable.feature:40
- When I run kumade with "bamboo" # features/step_definitions/kumade_steps.rb:1
- Then the output should contain "==> Deploying to: bamboo" # aruba-0.4.6/lib/aruba/cucumber.rb:78
- And the output should match /Cannot deploy: / # aruba-0.4.6/lib/aruba/cucumber.rb:114
- Scenario: Deploying to a non-Heroku remote fails # features/kumade_executable.feature:45
- When I run kumade with "bad-remote" # features/step_definitions/kumade_steps.rb:1
- Then the output should match /==> ! Cannot deploy: "bad-remote" remote does not point to Heroku/ # aruba-0.4.6/lib/aruba/cucumber.rb:114
- Scenario: Deploy from another branch # features/kumade_executable.feature:49
- When I run `git checkout -b new_branch` # aruba-0.4.6/lib/aruba/cucumber.rb:52
- And I run kumade with "pretend-staging -p" # features/step_definitions/kumade_steps.rb:1
- Then the output should contain: # aruba-0.4.6/lib/aruba/cucumber.rb:94
- """
- ==> Git repo is clean
- ==> Packaged assets with Jammit
- run git push origin new_branch
- ==> Pushed new_branch -> origin
- run git branch deploy
- run git push -f pretend-staging deploy:master
- ==> Pushed deploy:master -> pretend-staging
- ==> Migrated pretend-staging
- run git checkout new_branch && git branch -D deploy
- ==> Deployed to: pretend-staging
- """
- Scenario: Git is clean if there are untracked files # features/kumade_executable.feature:66
- Given I write to "new-file" with: # aruba-0.4.6/lib/aruba/cucumber.rb:23
- """
- clean
- """
- When I run kumade with "pretend-staging" # features/step_definitions/kumade_steps.rb:1
- Then the output from "bundle exec kumade pretend-staging" should not contain "==> ! Cannot deploy: repo is not clean" # aruba-0.4.6/lib/aruba/cucumber.rb:86
- Scenario: Git is not clean if a tracked file is modified # features/kumade_executable.feature:74
- Given I write to "new-file" with: # aruba-0.4.6/lib/aruba/cucumber.rb:23
- """
- clean
- """
- And I commit everything in the current repo # features/step_definitions/git_steps.rb:18
- When I append to "new-file" with "dirty it up" # aruba-0.4.6/lib/aruba/cucumber.rb:35
- And I run kumade with "pretend-staging" # features/step_definitions/kumade_steps.rb:1
- Then the output from "bundle exec kumade pretend-staging" should contain "==> ! Cannot deploy: repo is not clean" # aruba-0.4.6/lib/aruba/cucumber.rb:82
- Scenario: Jammit packager runs if Jammit is installed # features/kumade_executable.feature:84
- When I run kumade with "pretend-staging" # features/step_definitions/kumade_steps.rb:1
- Then the output from "bundle exec kumade pretend-staging" should contain "==> ! Error: Jammit::MissingConfiguration" # aruba-0.4.6/lib/aruba/cucumber.rb:82
- Scenario: Run custom task before jammit # features/kumade_executable.feature:88
- Given I write to "Rakefile" with: # aruba-0.4.6/lib/aruba/cucumber.rb:23
- """
- namespace :kumade do
- task :before_asset_compilation do
- puts 'Hi!'
- end
- end
- """
- When I run kumade with "pretend-staging -p" # features/step_definitions/kumade_steps.rb:1
- Then the output should match /kumade:before_asset_compilation.*Packaged assets with Jammit/ # aruba-0.4.6/lib/aruba/cucumber.rb:114
- @extra-timeout @creates-remote @disable-bundler
- Feature: Kumade without jammit
- Background: # features/kumade_without_jammit.feature:4
- Given a directory named "executable" # aruba-0.4.6/lib/aruba/cucumber.rb:11
- And I cd to "executable" # aruba-0.4.6/lib/aruba/cucumber.rb:43
- And I set up the Gemfile with kumade # features/step_definitions/bundler_steps.rb:16
- And I bundle # features/step_definitions/bundler_steps.rb:1
- When I set up a git repo # features/step_definitions/git_steps.rb:9
- And I create a Heroku remote for "pretend-staging-app" named "pretend-staging" # features/step_definitions/git_steps.rb:1
- Scenario: Jammit packager does not run if Jammit is not installed # features/kumade_without_jammit.feature:12
- When I run kumade with "pretend-staging" # features/step_definitions/kumade_steps.rb:1
- Then the output should not contain "==> ! Error: Jammit::MissingConfiguration" # aruba-0.4.6/lib/aruba/cucumber.rb:90
- Scenario: Run custom task if it exists # features/kumade_without_jammit.feature:16
- Given I write to "Rakefile" with: # aruba-0.4.6/lib/aruba/cucumber.rb:23
- """
- namespace :kumade do
- task :before_asset_compilation do
- puts 'Hi!'
- end
- end
- """
- When I run kumade with "pretend-staging" # features/step_definitions/kumade_steps.rb:1
- Then the output should contain "Running kumade:before_asset_compilation task" # aruba-0.4.6/lib/aruba/cucumber.rb:78
- And the output should contain "Hi!" # aruba-0.4.6/lib/aruba/cucumber.rb:78
- Scenario: Don't run rake task in pretend mode # features/kumade_without_jammit.feature:29
- Given I write to "Rakefile" with: # aruba-0.4.6/lib/aruba/cucumber.rb:23
- """
- namespace :kumade do
- task :before_asset_compilation do
- puts 'Hi!'
- end
- end
- """
- When I run kumade with "pretend-staging -p" # features/step_definitions/kumade_steps.rb:1
- Then the output should contain "Running kumade:before_asset_compilation task" # aruba-0.4.6/lib/aruba/cucumber.rb:78
- And the output should not contain "Hi!" # aruba-0.4.6/lib/aruba/cucumber.rb:90
- 12 scenarios (12 passed)
- 136 steps (136 passed)
- 0m25.388s
- (tapajos:kumade (master))$
Add Comment
Please, Sign In to add comment