mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 21:27:16 -05:00
use_ssl is just confusing, it means use_https , fix name of setting
This commit is contained in:
@@ -113,12 +113,12 @@ describe SiteSetting do
|
||||
describe "scheme" do
|
||||
|
||||
it "returns http when ssl is disabled" do
|
||||
SiteSetting.expects(:use_ssl).returns(false)
|
||||
SiteSetting.expects(:use_https).returns(false)
|
||||
SiteSetting.scheme.should == "http"
|
||||
end
|
||||
|
||||
it "returns https when using ssl" do
|
||||
SiteSetting.expects(:use_ssl).returns(true)
|
||||
SiteSetting.expects(:use_https).returns(true)
|
||||
SiteSetting.scheme.should == "https"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user