mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
FIX: Suspended users should have links stripped from their profiles.
This commit is contained in:
@ -103,6 +103,14 @@ describe UserProfile do
|
||||
expect(user_profile.bio_processed).to eq("<p>I love http://discourse.org</p>")
|
||||
end
|
||||
|
||||
it 'removes the link if the user is suspended' do
|
||||
user.suspended_till = 1.month.from_now
|
||||
puts user.suspended?.inspect
|
||||
user_profile.send(:cook)
|
||||
expect(user_profile.bio_excerpt).to match_html("I love http://discourse.org")
|
||||
expect(user_profile.bio_processed).to eq("<p>I love http://discourse.org</p>")
|
||||
end
|
||||
|
||||
context 'tl3_links_no_follow is false' do
|
||||
before { SiteSetting.stubs(:tl3_links_no_follow).returns(false) }
|
||||
|
||||
|
Reference in New Issue
Block a user