mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 15:05:24 +08:00
Add spec for a26889a
This commit is contained in:
parent
8fc6605d4f
commit
89bbc94331
|
@ -251,6 +251,11 @@ describe UserAnonymizer do
|
|||
expect(post1.reload).to have_attributes(via_email: true, raw_email: nil)
|
||||
expect(post2.reload).to have_attributes(via_email: true, raw_email: "raw email from another user")
|
||||
end
|
||||
|
||||
it "does not delete profile views" do
|
||||
UserProfileView.add(user.id, '127.0.0.1', another_user.id, Time.now, true)
|
||||
expect { make_anonymous }.to_not change { UserProfileView.count }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user