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