Sha256: 8e35d63b2d69f63a4d6b928272e6301918dc3dc7abebe958cdd2ecdd739439e7
Contents?: true
Size: 885 Bytes
Versions: 4
Compression:
Stored size: 885 Bytes
Contents
require 'spec_helper' require 'paperclip/storage/azure/environment' describe 'Paperclip::Storage::Azure::Environment' do subject { Paperclip::Storage::Azure::Environment } describe '#url_for' do let(:account_name) { 'foo' } describe 'when the region is not supplied' do it { expect(subject.url_for(account_name)).to eq("#{account_name}.blob.core.windows.net")} end describe 'when the region is China' do it { expect(subject.url_for(account_name, :cn)).to eq("#{account_name}.blob.core.chinacloudapi.cn")} end describe 'when the region is Germany' do it { expect(subject.url_for(account_name, :de)).to eq("#{account_name}.blob.core.cloudapi.de")} end describe 'when the region is the US Govt' do it { expect(subject.url_for(account_name, :usgovt)).to eq("#{account_name}.blob.core.usgovcloudapi.net")} end end end
Version data entries
4 entries across 4 versions & 2 rubygems