mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-23 11:03:50 -05:00
19 lines
401 B
Ruby
19 lines
401 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
RSpec.describe 'Admin Instances' do
|
|
describe 'GET /admin/instances/:id' do
|
|
context 'with an unknown domain' do
|
|
before { sign_in Fabricate(:admin_user) }
|
|
|
|
it 'returns http success' do
|
|
get admin_instance_path(id: 'unknown.example')
|
|
|
|
expect(response)
|
|
.to have_http_status(200)
|
|
end
|
|
end
|
|
end
|
|
end
|