DEV: Use proper wording for contexts in specs

This commit is contained in:
Loïc Guitaut
2022-07-27 18:14:14 +02:00
committed by Loïc Guitaut
parent 02987e05d5
commit 3eaac56797
337 changed files with 2172 additions and 2723 deletions

View File

@ -7,8 +7,7 @@ class GlobalPathInstance
end
RSpec.describe GlobalPath do
context 'cdn_relative_path' do
describe '.cdn_relative_path' do
def cdn_relative_path(p)
GlobalPathInstance.cdn_relative_path(p)
end
@ -28,7 +27,7 @@ RSpec.describe GlobalPath do
end
end
describe '#upload_cdn_path' do
describe '.upload_cdn_path' do
it 'generates correctly when S3 bucket has a folder' do
global_setting :s3_access_key_id, 's3_access_key_id'
global_setting :s3_secret_access_key, 's3_secret_access_key'