mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 17:38:07 +01:00
Merge commit 'cd0c5479362260082dbe1cbc42e364017853bbfc' into glitch-soc/merge-upstream
This commit is contained in:
commit
5ab111554e
2 changed files with 27 additions and 6 deletions
|
@ -4372,7 +4372,7 @@ a.status-card {
|
||||||
color: $primary-text-color;
|
color: $primary-text-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon-sliders {
|
||||||
transform: rotate(60deg);
|
transform: rotate(60deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4383,7 +4383,7 @@ a.status-card {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-reduce-motion .column-header__button .icon {
|
.no-reduce-motion .column-header__button .icon-sliders {
|
||||||
transition: transform 150ms ease-in-out;
|
transition: transform 150ms ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,11 +53,32 @@ RSpec.describe Admin::AccountsController do
|
||||||
|
|
||||||
describe 'GET #show' do
|
describe 'GET #show' do
|
||||||
let(:current_user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
let(:current_user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
|
||||||
let(:account) { Fabricate(:account) }
|
|
||||||
|
|
||||||
it 'returns http success' do
|
context 'with a remote account' do
|
||||||
get :show, params: { id: account.id }
|
let(:account) { Fabricate(:account, domain: 'example.com') }
|
||||||
expect(response).to have_http_status(200)
|
|
||||||
|
it 'returns http success' do
|
||||||
|
get :show, params: { id: account.id }
|
||||||
|
expect(response).to have_http_status(200)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
context 'with a local account' do
|
||||||
|
let(:account) { Fabricate(:account, domain: nil) }
|
||||||
|
|
||||||
|
it 'returns http success' do
|
||||||
|
get :show, params: { id: account.id }
|
||||||
|
expect(response).to have_http_status(200)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
context 'with a local deleted account' do
|
||||||
|
let(:account) { Fabricate(:account, domain: nil, user: nil) }
|
||||||
|
|
||||||
|
it 'returns http success' do
|
||||||
|
get :show, params: { id: account.id }
|
||||||
|
expect(response).to have_http_status(200)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue