Add eu-west-1 to s3 regions

This commit is contained in:
Neil Lalonde 2013-06-12 12:02:32 -04:00
parent a104c37d63
commit 28ac110a3c
2 changed files with 2 additions and 2 deletions

View file

@ -4,6 +4,6 @@ class S3RegionSiteSetting
end end
def self.all_values def self.all_values
@all_values ||= ['', 'us-east-1', 'us-west-1', 'us-west-2', 'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'sa-east-1'].sort @all_values ||= ['', 'us-east-1', 'us-west-1', 'us-west-2', 'eu-west-1', 'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'sa-east-1'].sort
end end
end end

View file

@ -14,7 +14,7 @@ describe S3RegionSiteSetting do
describe 'all_values' do describe 'all_values' do
it 'returns all the S3 regions and blank' do it 'returns all the S3 regions and blank' do
expect(S3RegionSiteSetting.all_values.sort).to eq(['', 'us-east-1', 'us-west-1', 'us-west-2', 'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'sa-east-1'].sort) expect(S3RegionSiteSetting.all_values.sort).to eq(['', 'us-east-1', 'us-west-1', 'us-west-2', 'eu-west-1', 'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'sa-east-1'].sort)
end end
end end