feat: Add CSAT response APIs (#2503)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -18,7 +18,9 @@ RSpec.describe 'Campaigns API', type: :request do
|
||||
let!(:campaign) { create(:campaign, account: account) }
|
||||
|
||||
it 'returns unauthorized for agents' do
|
||||
get "/api/v1/accounts/#{account.id}/campaigns"
|
||||
get "/api/v1/accounts/#{account.id}/campaigns",
|
||||
headers: agent.create_new_auth_token,
|
||||
as: :json
|
||||
|
||||
expect(response).to have_http_status(:unauthorized)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user