mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
use_ssl is just confusing, it means use_https , fix name of setting
This commit is contained in:
@@ -16,19 +16,19 @@ describe Discourse do
|
||||
end
|
||||
|
||||
context 'base_url' do
|
||||
context 'when ssl is off' do
|
||||
context 'when https is off' do
|
||||
before do
|
||||
SiteSetting.expects(:use_ssl?).returns(false)
|
||||
SiteSetting.expects(:use_https?).returns(false)
|
||||
end
|
||||
|
||||
it 'has a non-ssl base url' do
|
||||
it 'has a non https base url' do
|
||||
Discourse.base_url.should == "http://foo.com"
|
||||
end
|
||||
end
|
||||
|
||||
context 'when ssl is on' do
|
||||
context 'when https is on' do
|
||||
before do
|
||||
SiteSetting.expects(:use_ssl?).returns(true)
|
||||
SiteSetting.expects(:use_https?).returns(true)
|
||||
end
|
||||
|
||||
it 'has a non-ssl base url' do
|
||||
|
||||
Reference in New Issue
Block a user