Sha256: aa3aad98a1552baa86c88fd0d2d5d232594bfcfcfa1b2026ae08d03a46a9b7f7

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

require "spec_helper"

RSpec.describe "bulldozer:production:manifest", type: :generator do
  it "generates the manifest for a production build" do
    with_app { generate("bulldozer:production:manifest") }

    expect("app.json").to contain_json(
      name: BulldozerTestHelpers::APP_NAME.dasherize,
      env: {
        APPLICATION_HOST: { required: true },
        EMAIL_RECIPIENTS: { required: true },
        HEROKU_APP_NAME: { required: true },
        HEROKU_PARENT_APP_NAME: { required: true },
        RACK_ENV: { required: true },
        SECRET_KEY_BASE: { generator: "secret" },
      },
    )
  end

  it "destroys the manifest for a production build" do
    with_app { destroy("bulldozer:production:manifest") }

    expect("app.json").not_to contain_json(
      name: BulldozerTestHelpers::APP_NAME.dasherize,
      env: {
        APPLICATION_HOST: { required: true },
        EMAIL_RECIPIENTS: { required: true },
        HEROKU_APP_NAME: { required: true },
        HEROKU_PARENT_APP_NAME: { required: true },
        RACK_ENV: { required: true },
        SECRET_KEY_BASE: { generator: "secret" },
      },
    )
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bulldozer-1.6.3 spec/features/production/manifest_spec.rb
bulldozer-1.6.2 spec/features/production/manifest_spec.rb
bulldozer-1.6.1 spec/features/production/manifest_spec.rb
bulldozer-1.6.0 spec/features/production/manifest_spec.rb