2019-04-29 20:27:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-07-27 22:27:38 -04:00
|
|
|
RSpec.describe S3RegionSiteSetting do
|
2013-06-11 14:23:52 -04:00
|
|
|
|
|
|
|
describe 'valid_value?' do
|
|
|
|
it 'returns true for a valid S3 region' do
|
|
|
|
expect(S3RegionSiteSetting.valid_value?('us-west-1')).to eq(true)
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'returns false for an invalid S3 region' do
|
|
|
|
expect(S3RegionSiteSetting.valid_value?('the-moon')).to eq(false)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-06-23 01:07:25 -04:00
|
|
|
end
|