Sha256: 8791237662e0a014954615214d10ab9663560200823138f3a8c9dbf3dea8ff32

Contents?: true

Size: 720 Bytes

Versions: 59

Compression:

Stored size: 720 Bytes

Contents

require 'spec_helper'

describe S3Website::ConfigLoader do
  it 'supports eRuby syntax in s3_website.yml' do
    config = S3Website::ConfigLoader.load_configuration('spec/sample_files/hyde_site/')
    config['s3_id'].should eq('hello')
    config['s3_secret'].should eq('world')
    config['s3_bucket'].should eq('galaxy')
  end

  it 'does not define default endpoint' do
    config = S3Website::ConfigLoader.load_configuration('spec/sample_files/hyde_site/')
    config['s3_endpoint'].should be_nil
  end

  it 'reads the S3 endpoint setting from s3_website.yml' do
    config = S3Website::ConfigLoader.load_configuration('spec/sample_files/tokyo_site')
    config['s3_endpoint'].should eq('ap-northeast-1')
  end
end

Version data entries

59 entries across 59 versions & 2 rubygems

Version Path
s3_website-1.8.2 spec/lib/config_loader_spec.rb
s3_website-1.8.1 spec/lib/config_loader_spec.rb
s3_website-1.8.0 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.15 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.14 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.13 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.12 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.11 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.9 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.8 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.7 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.6 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.5 spec/lib/config_loader_spec.rb
s3_website-1.7.6 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.4 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.3 spec/lib/config_loader_spec.rb
s3_website-1.7.5 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.2 spec/lib/config_loader_spec.rb
s3_website_monadic-0.0.1 spec/lib/config_loader_spec.rb
s3_website-1.7.4 spec/lib/config_loader_spec.rb