mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-09 00:15:05 +00:00
dbe9f33fdc
* Add Admin::BaseController to wrap admin area Extracts the setting of the `admin` layout and verifying that users are admins to a common base class for the admin/ controllers. * Add basic coverage for admin/reports and admin/settings controllers
15 lines
316 B
Ruby
15 lines
316 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe Admin::SettingsController, type: :controller do
|
|
describe 'GET #index' do
|
|
before do
|
|
sign_in Fabricate(:user, admin: true), scope: :user
|
|
end
|
|
|
|
it 'returns http success' do
|
|
get :index
|
|
expect(response).to have_http_status(:success)
|
|
end
|
|
end
|
|
end
|