Sha256: 90517e0127daf5387610aeea26417c2e81a68981d78ab024da72699284588f1b
Contents?: true
Size: 1.47 KB
Versions: 5
Compression:
Stored size: 1.47 KB
Contents
require "spec_helper" feature "Heroku" do scenario "Suspend a project for Heroku" do run_stoker("--heroku=true") expect(FakeHeroku).to( have_gem_included(project_path, "rails_stdout_logging") ) expect(FakeHeroku).to have_created_app_for("staging") expect(FakeHeroku).to have_created_app_for("production") expect(FakeHeroku).to have_configured_vars("staging", "SECRET_KEY_BASE") expect(FakeHeroku).to have_configured_vars("production", "SECRET_KEY_BASE") bin_setup_path = "#{project_path}/bin/setup" bin_setup = IO.read(bin_setup_path) app_name = StokerTestHelpers::APP_NAME.dasherize expect(bin_setup).to include("heroku join --app #{app_name}-production") expect(bin_setup).to include("heroku join --app #{app_name}-staging") expect(File.stat(bin_setup_path)).to be_executable bin_deploy_path = "#{project_path}/bin/deploy" bin_deploy = IO.read(bin_deploy_path) expect(bin_deploy).to include("heroku run rake db:migrate") expect(File.stat(bin_deploy_path)).to be_executable readme = IO.read("#{project_path}/README.md") expect(readme).to include("./bin/deploy staging") expect(readme).to include("./bin/deploy production") end scenario "Suspend a project with extra Heroku flags" do run_stoker(%{--heroku=true --heroku-flags="--region eu"}) expect(FakeHeroku).to have_created_app_for("staging", "--region eu") expect(FakeHeroku).to have_created_app_for("production", "--region eu") end end
Version data entries
5 entries across 5 versions & 1 rubygems