Sha256: 02e29f69a20284d42ebb8ad26623b83d8bc7fb2b18c8aef84594641c0e24e23c

Contents?: true

Size: 729 Bytes

Versions: 1

Compression:

Stored size: 729 Bytes

Contents

require "spec_helper"

RSpec.describe "suspenders:staging:pull_requests" do
  it "generates the configuration for Heroku pipeline review apps" do
    with_app { generate("suspenders:staging:pull_requests") }

    expect("config/environments/production.rb").to \
      match_contents(%r{HEROKU_APP_NAME})

    expect("bin/setup_review_app").to \
      match_contents(%r{APP_NAME=dummy-app-staging-pr-\$1})
  end

  it "destroys the configuration for Heroku pipeline review apps" do
    with_app { destroy("suspenders:staging:pull_requests") }

    expect("config/environments/production.rb").not_to \
      match_contents(%r{APP_NAME=dummy-app-staging-pr-\$1})

    expect("bin/setup_review_app").not_to exist_as_a_file
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
suspenders-1.50.0 spec/features/staging/pull_requests_spec.rb