Nuke all SiteSetting.stubs from our codebase.

This commit is contained in:
Guo Xiang Tan
2017-07-07 15:09:14 +09:00
parent e7e16de3e0
commit 13f3de4bf6
59 changed files with 257 additions and 262 deletions

View File

@ -117,7 +117,7 @@ describe Email::Styles do
context "without https" do
before do
SiteSetting.stubs(:force_https).returns(false)
SiteSetting.force_https = false
end
it "rewrites the href to have http" do
@ -138,7 +138,7 @@ describe Email::Styles do
context "with https" do
before do
SiteSetting.stubs(:force_https).returns(true)
SiteSetting.force_https = true
end
it "rewrites the forum URL to have https" do