mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Nuke all SiteSetting.stubs
from our codebase.
This commit is contained in:
parent
e7e16de3e0
commit
13f3de4bf6
59 changed files with 257 additions and 262 deletions
|
@ -143,7 +143,7 @@ describe UserProfile do
|
|||
end
|
||||
|
||||
context 'tl3_links_no_follow is false' do
|
||||
before { SiteSetting.stubs(:tl3_links_no_follow).returns(false) }
|
||||
before { SiteSetting.tl3_links_no_follow = false }
|
||||
|
||||
it 'includes the link without nofollow if the user is trust level 3 or higher' do
|
||||
user.trust_level = TrustLevel[3]
|
||||
|
@ -169,7 +169,7 @@ describe UserProfile do
|
|||
end
|
||||
|
||||
context 'tl3_links_no_follow is true' do
|
||||
before { SiteSetting.stubs(:tl3_links_no_follow).returns(true) }
|
||||
before { SiteSetting.tl3_links_no_follow = true }
|
||||
|
||||
it 'includes the link with nofollow if the user is trust level 3 or higher' do
|
||||
user.trust_level = TrustLevel[3]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue