mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 20:18:08 +00:00
- Fix git-hash in super admin instance health page for Heroku installations - Fix git boundary not set error for docker/heroku deployments which remove .git directory
25 lines
785 B
Ruby
25 lines
785 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe 'Super Admin Instance status', type: :request do
|
|
let(:super_admin) { create(:super_admin) }
|
|
|
|
describe 'GET /super_admin/instance_status' do
|
|
context 'when it is an unauthenticated super admin' do
|
|
it 'returns unauthorized' do
|
|
get '/super_admin/instance_status'
|
|
expect(response).to have_http_status(:redirect)
|
|
end
|
|
end
|
|
|
|
context 'when it is an authenticated super admin' do
|
|
it 'shows the instance_status page' do
|
|
sign_in(super_admin, scope: :super_admin)
|
|
get '/super_admin/instance_status'
|
|
expect(response).to have_http_status(:success)
|
|
expect(response.body).to include('Chatwoot version')
|
|
expect(response.body).to include(GIT_HASH)
|
|
end
|
|
end
|
|
end
|
|
end
|