rename site settings for trust levels as numbers

This commit is contained in:
Jeff Atwood
2014-09-04 13:16:46 -07:00
parent 229566fc32
commit fcca64c0cf
13 changed files with 97 additions and 97 deletions

View File

@ -98,8 +98,8 @@ describe UserProfile do
expect(user_profile.bio_processed).to eq("<p>I love http://discourse.org</p>")
end
context 'leader_links_no_follow is false' do
before { SiteSetting.stubs(:leader_links_no_follow).returns(false) }
context 'tl3_links_no_follow is false' do
before { SiteSetting.stubs(:tl3_links_no_follow).returns(false) }
it 'includes the link without nofollow if the user is trust level 3 or higher' do
user.trust_level = TrustLevel.levels[:leader]
@ -123,8 +123,8 @@ describe UserProfile do
end
end
context 'leader_links_no_follow is true' do
before { SiteSetting.stubs(:leader_links_no_follow).returns(true) }
context 'tl3_links_no_follow is true' do
before { SiteSetting.stubs(:tl3_links_no_follow).returns(true) }
it 'includes the link with nofollow if the user is trust level 3 or higher' do
user.trust_level = TrustLevel.levels[:leader]