feat: Add upload under account scope (#7914)

This commit is contained in:
Shivam Mishra
2023-09-19 09:51:54 +05:30
committed by GitHub
parent 2429daa45c
commit 53d530b815
8 changed files with 28 additions and 19 deletions

View File

@@ -129,7 +129,7 @@ RSpec.describe 'Api::V1::Accounts::MacrosController', type: :request do
it 'Saves file in the macros actions to send an attachments' do
file = fixture_file_upload(Rails.root.join('spec/assets/avatar.png'), 'image/png')
post '/api/v1/upload',
post "/api/v1/accounts/#{account.id}/upload/",
headers: administrator.create_new_auth_token,
params: { attachment: file }