Sha256: 4e1991e965f29d2428699300e6cedae06e633939b85c857a192aae3039e3f7b8
Contents?: true
Size: 736 Bytes
Versions: 3
Compression:
Stored size: 736 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/_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/_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/_site') config['s3_endpoint'].should eq('ap-northeast-1') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
s3_website-0.2.1 | spec/lib/config_loader_spec.rb |
s3_website-0.2.0 | spec/lib/config_loader_spec.rb |
s3_website-0.1.0 | spec/lib/config_loader_spec.rb |