mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 00:32:52 +08:00
DEV: Combine S3 system spec helpers into one (#29580)
It's annoying to have to do both of these every time you write an S3 system spec, let's just do them in one call instead.
This commit is contained in:
@ -127,7 +127,9 @@ module SystemHelpers
|
||||
page.execute_script(js, selector, start, offset)
|
||||
end
|
||||
|
||||
def setup_s3_system_test(enable_secure_uploads: false, enable_direct_s3_uploads: true)
|
||||
def setup_or_skip_s3_system_test(enable_secure_uploads: false, enable_direct_s3_uploads: true)
|
||||
skip_unless_s3_system_specs_enabled!
|
||||
|
||||
SiteSetting.enable_s3_uploads = true
|
||||
|
||||
SiteSetting.s3_upload_bucket = "discoursetest"
|
||||
|
Reference in New Issue
Block a user