Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
246 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,29 @@ | ||
@slow_process @announce-cmd | ||
Feature: heroku_san can shell out to heroku without errors | ||
|
||
Scenario: Bundling a ruby 2.2.4 project | ||
Scenario: Bundling a new project | ||
Given I run `mkdir -p ruby2test` | ||
And I cd to "ruby2test" | ||
And I write to "Gemfile" with: | ||
""" | ||
source "https://rubygems.org" | ||
ruby '2.2.4' | ||
gem 'heroku_san', :path => '../../../.' | ||
""" | ||
|
||
And I run `gem install bundler` | ||
And I run bundle install | ||
And I write to "get_heroku_version.rb" with: | ||
""" | ||
#!/usr/bin/env ruby | ||
puts ENV['RUBY_VERSION'] | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __FILE__) | ||
require 'bundler/setup' | ||
require 'heroku_san' | ||
api = HerokuSan::API.new | ||
api.sh('any_app_name', 'auth:whoami') | ||
""" | ||
And I write to "run_in_ruby_2.sh" with: | ||
""" | ||
#!/usr/bin/env bash | ||
rbenv local 2.2.4 | ||
bundle install | ||
ruby get_heroku_version.rb | ||
api.sh(nil, 'status') | ||
""" | ||
And I run `chmod +x run_in_ruby_2.sh` | ||
And I cleanly run `./run_in_ruby_2.sh` | ||
And I run `chmod +x get_heroku_version.rb` | ||
And I cleanly run `bundle exec ruby ./get_heroku_version.rb` | ||
Then the output should contain "heroku-toolbelt" | ||
# Fail if we see "Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0" | ||
Then the output should not contain "Your Ruby version" | ||
Then the output should not contain "your Gemfile specified" | ||
Then the output should contain "Production" | ||
Then the output should contain "Development" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.