Sha256: 8baa983fe44555c8fffea24d12e60602086205b98cc59acb54037cfd1878f2b3

Contents?: true

Size: 747 Bytes

Versions: 10

Compression:

Stored size: 747 Bytes

Contents

require "spec_helper"

RSpec.describe "suspenders:staging:pull_requests", type: :generator 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

10 entries across 10 versions & 2 rubygems

Version Path
suspenders-1.55.1 spec/features/staging/pull_requests_spec.rb
suspenders-1.55.0 spec/features/staging/pull_requests_spec.rb
suspenders-1.54.1 spec/features/staging/pull_requests_spec.rb
suspenders-1.54.0 spec/features/staging/pull_requests_spec.rb
welaika-suspenders-3.0 spec/features/staging/pull_requests_spec.rb
welaika-suspenders-2.36 spec/features/staging/pull_requests_spec.rb
welaika-suspenders-2.35 spec/features/staging/pull_requests_spec.rb
welaika-suspenders-2.34 spec/features/staging/pull_requests_spec.rb
suspenders-1.53.0 spec/features/staging/pull_requests_spec.rb
welaika-suspenders-2.33 spec/features/staging/pull_requests_spec.rb