mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 14:08:32 +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:
@ -10,9 +10,7 @@ describe "Uploading files in the composer to S3", type: :system do
|
||||
describe "direct S3 uploads" do
|
||||
describe "single part uploads" do
|
||||
it "uploads custom avatars to S3" do
|
||||
skip_unless_s3_system_specs_enabled!
|
||||
|
||||
setup_s3_system_test
|
||||
setup_or_skip_s3_system_test
|
||||
sign_in(current_user)
|
||||
|
||||
visit "/my/preferences/account"
|
||||
@ -37,9 +35,7 @@ describe "Uploading files in the composer to S3", type: :system do
|
||||
|
||||
describe "multipart uploads" do
|
||||
it "uploads a file in the post composer" do
|
||||
skip_unless_s3_system_specs_enabled!
|
||||
|
||||
setup_s3_system_test
|
||||
setup_or_skip_s3_system_test
|
||||
sign_in(current_user)
|
||||
|
||||
topic.open_new_topic
|
||||
|
Reference in New Issue
Block a user