mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 14:05:11 +01:00
55e1503522
* Add admin/instances index action * Add link to instances admin page * View lists instances * Instances, grouped by domain, ordered by count * Use Account.remote scope * Extract method: Account.by_domain_accounts
16 lines
312 B
Ruby
16 lines
312 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe Admin::InstancesController, type: :controller do
|
|
before do
|
|
sign_in Fabricate(:user, admin: true), scope: :user
|
|
end
|
|
|
|
describe 'GET #index' do
|
|
it 'returns http success' do
|
|
get :index
|
|
|
|
expect(response).to have_http_status(:success)
|
|
end
|
|
end
|
|
end
|