Sha256: 253351bfb2e27e95f41dcbb0c1af1928a6a01d53fa8ee98facce564a8d6836ad

Contents?: true

Size: 1.12 KB

Versions: 9

Compression:

Stored size: 1.12 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 },
        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 },
        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

9 entries across 9 versions & 2 rubygems

Version Path
suspenders-1.53.0 spec/features/production/manifest_spec.rb
welaika-suspenders-2.33 spec/features/production/manifest_spec.rb
welaika-suspenders-2.32.2 spec/features/production/manifest_spec.rb
welaika-suspenders-2.32.1 spec/features/production/manifest_spec.rb
welaika-suspenders-2.32.0 spec/features/production/manifest_spec.rb
suspenders-1.52.0 spec/features/production/manifest_spec.rb
suspenders-1.51.0 spec/features/production/manifest_spec.rb
welaika-suspenders-2.31.0 spec/features/production/manifest_spec.rb
welaika-suspenders-2.30.0 spec/features/production/manifest_spec.rb