Merge commit 'b922ad7a1b4bc8d968d0df2c7f307d4fec53435d' into glitch-soc/merge-upstream
Conflicts: - `package.json`: Upstream changed various script definitions in lines surrounding the one for `i18n:extract`, which had glitch-soc-specific changes. Updated the scripts as upstream did, while keeping our changes to `i18n:extract`.
This commit is contained in:
@@ -209,6 +209,18 @@ describe ApplicationHelper do
|
||||
end
|
||||
end
|
||||
|
||||
context 'when S3 alias includes a path component' do
|
||||
around do |example|
|
||||
ClimateControl.modify S3_ALIAS_HOST: 's3.alias/path' do
|
||||
example.run
|
||||
end
|
||||
end
|
||||
|
||||
it 'returns a correct URL' do
|
||||
expect(helper.storage_host).to eq('https://s3.alias/path')
|
||||
end
|
||||
end
|
||||
|
||||
context 'when S3 cloudfront is present' do
|
||||
around do |example|
|
||||
ClimateControl.modify S3_CLOUDFRONT_HOST: 's3.cloudfront' do
|
||||
@@ -220,12 +232,6 @@ describe ApplicationHelper do
|
||||
expect(helper.storage_host).to eq('https://s3.cloudfront')
|
||||
end
|
||||
end
|
||||
|
||||
context 'when neither env value is present' do
|
||||
it 'returns false' do
|
||||
expect(helper.storage_host).to eq('https:')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe 'storage_host?' do
|
||||
|
Reference in New Issue
Block a user