A platform for community discussion. Free, open, simple.
Add spec for a26889a
Gerhard Schlager89bbc94331a3
diff --git a/spec/services/user_anonymizer_spec.rb b/spec/services/user_anonymizer_spec.rbindex aae23e8ee92..9212958d23c 100644--- a/spec/services/user_anonymizer_spec.rb+++ b/spec/services/user_anonymizer_spec.rb@@ -251,6 +251,11 @@ describe UserAnonymizer doexpect(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 }+ endendend