fix: enable lograge in superadmin path (#7026)

* fix: lograge superadmin path
* chore: add spec for superadmin devise session controller
* chore: address review comment
This commit is contained in:
Vishnu Narayanan
2023-05-08 13:43:55 +05:30
committed by GitHub
parent 3dedfee350
commit 51fb3b7e8e
3 changed files with 16 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
require 'rails_helper'
RSpec.describe 'Super Admin', type: :request do
describe '/super_admin' do
it 'renders the login page' do
with_modified_env LOGRAGE_ENABLED: 'true' do
get '/super_admin/sign_in'
expect(response).to have_http_status(:ok)
end
end
end
end