Permalink
8d3e8b6 Mar 14, 2016
@kmayer @spraints
47 lines (43 sloc) 1.65 KB
@slow_process @announce-command @announce-output @announce-directory
Feature: heroku_san can control a project on Heroku
WARNING: This WILL create apps on Heroku!
You must login with the heroku cli before starting
this test; otherwise it will probably hang the first
time it tries to do anything with Heroku itself.
Scenario: Installs a project
Given I have a new Rails project
And I add heroku_san to the rails Gemfile
Then rake reports that the heroku: tasks are available
Scenario: Manipulates a Rails app on Heroku
Given I have a new Rails project
And I commit any changes with "Initial commit"
And I add heroku_san to the rails Gemfile
And I generate a new config file
And I create my project on Heroku
And I curl the app home page
And I configure my project
And I turn maintenance on
And I generate a scaffold
And I commit any changes with "Added droids"
And I deploy my project
And I turn maintenance off
And I restart my project
And I list all apps on Heroku
And I install an addon
Then heroku_san is green
Scenario: Manipulates a Sinatra app on Heroku
Given I have a new Sinatra project
When I commit any changes with "Initial commit"
And I create a new config/heroku.yml file
And I create my project on Heroku
And I curl the app home page
And I configure my project
And I turn maintenance on
And I add a new action
And I commit any changes with "Added droids"
And I deploy my project
And I turn maintenance off
And I restart my project
And I list all apps on Heroku
And I install an addon
Then heroku_san is green