Sha256: 49500139e09172ed5de9dfffe863508cf35b11e3f86738a274a4a4709c309b26
Contents?: true
Size: 1.07 KB
Versions: 3
Compression:
Stored size: 1.07 KB
Contents
require File.join(File.dirname(__FILE__), "..", "..", "spec_helper.rb") require "yaml" require "wellcar/templates/env_production_web" RSpec.describe Wellcar::Templates::EnvProductionWeb do describe "#render" do subject { template.render } context "with a key" do let(:template) { described_class.new("thekey") } it { is_expected.to include("RAILS_MASTER_KEY=thekey") } it { is_expected.to include("DATABASE_HOST=database") } it { is_expected.to include("RAILS_ENV=production") } it { is_expected.to include("RAILS_LOG_TO_STDOUT=true") } it { is_expected.to include("RAILS_SERVE_STATIC_FILES=true") } end context "with another key" do let(:template) { described_class.new("anotherkey") } it { is_expected.to include("RAILS_MASTER_KEY=anotherkey") } it { is_expected.to include("DATABASE_HOST=database") } it { is_expected.to include("RAILS_ENV=production") } it { is_expected.to include("RAILS_LOG_TO_STDOUT=true") } it { is_expected.to include("RAILS_SERVE_STATIC_FILES=true") } end end end
Version data entries
3 entries across 3 versions & 1 rubygems