missed a send which caused code to break
This commit is contained in:
parent
ab3d4471fe
commit
276fd702e8
|
@ -405,7 +405,7 @@ module SiteSettingExtension
|
|||
end
|
||||
|
||||
define_singleton_method clean_name + "?" do
|
||||
clean_name
|
||||
self.send clean_name
|
||||
end
|
||||
|
||||
define_singleton_method clean_name + "=" do |val|
|
||||
|
|
|
@ -83,7 +83,7 @@ describe SiteSetting do
|
|||
describe "scheme" do
|
||||
|
||||
it "returns http when ssl is disabled" do
|
||||
SiteSetting.expects(:use_https).returns(false)
|
||||
SiteSetting.use_https = false
|
||||
expect(SiteSetting.scheme).to eq("http")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue