mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +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
|
@ -53,12 +53,7 @@ describe Discourse do
|
|||
let!(:another_admin) { Fabricate(:admin) }
|
||||
|
||||
it 'returns the user specified by the site setting site_contact_username' do
|
||||
SiteSetting.stubs(:site_contact_username).returns(another_admin.username)
|
||||
expect(Discourse.site_contact_user).to eq(another_admin)
|
||||
end
|
||||
|
||||
it 'returns the user specified by the site setting site_contact_username regardless of its case' do
|
||||
SiteSetting.stubs(:site_contact_username).returns(another_admin.username.upcase)
|
||||
SiteSetting.site_contact_username = another_admin.username
|
||||
expect(Discourse.site_contact_user).to eq(another_admin)
|
||||
end
|
||||
|
||||
|
@ -211,4 +206,3 @@ describe Discourse do
|
|||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue