Sha256: 786f0a428761e3bbf568c3a70ff2ca91333ce80827db937aaad59d42d5811a50
Contents?: true
Size: 1.29 KB
Versions: 3
Compression:
Stored size: 1.29 KB
Contents
require "spec_helper" feature "Heroku" do scenario "Suspend a project for Heroku" do run_suspenders("--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 = IO.read("#{project_path}/bin/setup") app_name = SuspendersTestHelpers::APP_NAME expect(bin_setup).to include("heroku join --app #{app_name}-staging") expect(bin_setup).to include("heroku join --app #{app_name}-production") bin_deploy = IO.read("#{project_path}/bin/deploy") expect(bin_deploy).to include("heroku run rake db:migrate") 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_suspenders(%{--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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
suspenders-1.24.0 | spec/features/heroku_spec.rb |
suspenders-1.23.0 | spec/features/heroku_spec.rb |
suspenders-1.22.0 | spec/features/heroku_spec.rb |