mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
feat: Unify user and super admin credentials (#3830)
Fixes: #3061, #3489
This commit is contained in:
@@ -15,7 +15,7 @@ RSpec.describe 'Super Admin Application Config API', type: :request do
|
||||
let!(:config) { create(:installation_config, { name: 'FB_APP_ID', value: 'TESTVALUE' }) }
|
||||
|
||||
it 'shows the app_config page' do
|
||||
sign_in super_admin
|
||||
sign_in(super_admin, scope: :super_admin)
|
||||
get '/super_admin/app_config'
|
||||
expect(response).to have_http_status(:success)
|
||||
expect(response.body).to include(config.name)
|
||||
@@ -33,7 +33,7 @@ RSpec.describe 'Super Admin Application Config API', type: :request do
|
||||
|
||||
context 'when it is an aunthenticated super admin' do
|
||||
it 'shows the app_config page' do
|
||||
sign_in super_admin
|
||||
sign_in(super_admin, scope: :super_admin)
|
||||
post '/super_admin/app_config', params: { app_config: { TESTKEY: 'TESTVALUE' } }
|
||||
|
||||
expect(response.status).to eq(302)
|
||||
|
||||
Reference in New Issue
Block a user