mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07: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
15 lines
312 B
Ruby
15 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
|