Sha256: 0986729f55cd2cedd12602fa3a70447136e7653afc424c512b63796a67b1f0e8
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
require 'rspec' require 'configure-s3-website' describe ConfigureS3Website::S3Client do context '#create_bucket' do let(:config_source) { mock = double('config_source') mock.stub(:s3_endpoint).and_return('invalid-location-constraint') mock } it 'throws an error if the config contains an invalid S3 location constraint' do expect { extractor = ConfigureS3Website::S3Client. send(:create_bucket, config_source) }.to raise_error(InvalidS3LocationConstraintError) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
configure-s3-website-1.1.1 | spec/s3_client_spec.rb |
configure-s3-website-1.1.0 | spec/s3_client_spec.rb |