Permalink
Browse files

ConfigLoader should not define the default endpoint

  • Loading branch information...
1 parent 3eec3f1 commit 801499c0c3722ecdea9fb414a63da96fef42c3c5 @laurilehmijoki committed Apr 9, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 spec/lib/config_loader_spec.rb
@@ -8,6 +8,11 @@
config['s3_bucket'].should eq('galaxy')
end
+ it 'does not define default endpoint' do
+ config = Jekyll::S3::ConfigLoader.load_configuration('spec/sample_files/hyde_site/_site')
+ config['s3_endpoint'].should be_nil
+ end
+
it 'reads the S3 endpoint setting from _jekyll_s3.yml' do
config = Jekyll::S3::ConfigLoader.load_configuration('spec/sample_files/tokyo_site/_site')
config['s3_endpoint'].should eq('ap-northeast-1')

0 comments on commit 801499c

Please sign in to comment.