Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AO3-6204 Allow certain admins to remove non-default orphan pseuds from orphaned works #5022

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
AO3-6204 Add test for attempting to remove a normal users pseud
Bilka2 committed Jan 11, 2025
commit fa683b5b1b574631f6ccac3cd0eaf071dc526da3
1 change: 1 addition & 0 deletions spec/controllers/admin/user_creations_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -300,6 +300,7 @@

context "with a pseud parameter by a normal user" do
subject { put :remove_pseud, params: { id: work.id, pseuds: [user.default_pseud.id] } }
let(:work) { create(:work, authors: [user.default_pseud]) }

it "does not modify the work" do
expect do