Skip to content

Commit

Permalink
Merge pull request glitch-soc#2716 from ClearlyClaire/glitch-soc/merg…
Browse files Browse the repository at this point in the history
…e-upstream

Merge upstream changes up to cd0c547
  • Loading branch information
ClearlyClaire authored May 21, 2024
2 parents 40a3a3f + dc35563 commit 65db9de
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/javascript/flavours/glitch/styles/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4609,7 +4609,7 @@ a.status-card {
color: $primary-text-color;
}

.icon {
.icon-sliders {
transform: rotate(60deg);
}
}
Expand Down Expand Up @@ -4659,7 +4659,7 @@ a.status-card {
padding: 0;
}

.no-reduce-motion .column-header__button .icon {
.no-reduce-motion .column-header__button .icon-sliders {
transition: transform 150ms ease-in-out;
}

Expand Down
4 changes: 2 additions & 2 deletions app/javascript/styles/mastodon/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4372,7 +4372,7 @@ a.status-card {
color: $primary-text-color;
}

.icon {
.icon-sliders {
transform: rotate(60deg);
}
}
Expand All @@ -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;
}

Expand Down
29 changes: 25 additions & 4 deletions spec/controllers/admin/accounts_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,32 @@

describe 'GET #show' do
let(:current_user) { Fabricate(:user, role: UserRole.find_by(name: 'Admin')) }
let(:account) { Fabricate(:account) }

it 'returns http success' do
get :show, params: { id: account.id }
expect(response).to have_http_status(200)
context 'with a remote account' do
let(:account) { Fabricate(:account, domain: 'example.com') }

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

Expand Down

0 comments on commit 65db9de

Please sign in to comment.