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