Sha256: b4f05db70fc1167cd7146b20168d1f0618911129198f70cfb5e2d0393b9d3fac

Contents?: true

Size: 1.2 KB

Versions: 4

Compression:

Stored size: 1.2 KB

Contents

require "spec_helper"

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

    expect("app.json").to contain_json(
      name: SuspendersTestHelpers::APP_NAME.dasherize,
      env: {
        APPLICATION_HOST: { required: true },
        AUTO_MIGRATE_DB: { value: "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("suspenders:production:manifest") }

    expect("app.json").not_to contain_json(
      name: SuspendersTestHelpers::APP_NAME.dasherize,
      env: {
        APPLICATION_HOST: { required: true },
        AUTO_MIGRATE_DB: { value: "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
welaika-suspenders-3.0 spec/features/production/manifest_spec.rb
welaika-suspenders-2.36 spec/features/production/manifest_spec.rb
welaika-suspenders-2.35 spec/features/production/manifest_spec.rb
welaika-suspenders-2.34 spec/features/production/manifest_spec.rb