Sha256: c729bf2672c9ddb5b0af4092c7feb7b9652f0c71810898b4018800102b0c46c3

Contents?: true

Size: 894 Bytes

Versions: 1

Compression:

Stored size: 894 Bytes

Contents

require 'spec_helper'

describe FontProcessor::Config do
  subject { FontProcessor::Config }

  describe "the environment" do
    it "defaults to development" do
      expect(subject.environment).to eq "development"
    end
    context "when set to test" do
      before(:all) do
        ENV['ENV'] = "test"
      end
      after(:all) do
        ENV.delete('ENV')
      end
      it "is test" do
        expect(subject.environment).to eq "test"
      end
    end
  end

  it "has an s3 source bucket" do
    expect(subject.s3_source_bucket).to eq "typekit-development-source-fonts"
  end

  it "has an s3 processed bucket" do
    expect(subject.s3_processed_bucket).to eq "typekit-development-processed-fonts"
  end

  it "has a mongo host" do
    expect(subject.mongo_host).to eq "localhost"
  end

  it "has a mongo db" do
    expect(subject.mongo_db).to eq "fontbase_development"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fontprocessor-27.1.3 spec/lib/fontprocessor/config_spec.rb