missed a send which caused code to break
This commit is contained in:
parent
ab3d4471fe
commit
276fd702e8
2 changed files with 2 additions and 2 deletions
|
@ -405,7 +405,7 @@ module SiteSettingExtension
|
||||||
end
|
end
|
||||||
|
|
||||||
define_singleton_method clean_name + "?" do
|
define_singleton_method clean_name + "?" do
|
||||||
clean_name
|
self.send clean_name
|
||||||
end
|
end
|
||||||
|
|
||||||
define_singleton_method clean_name + "=" do |val|
|
define_singleton_method clean_name + "=" do |val|
|
||||||
|
|
|
@ -83,7 +83,7 @@ describe SiteSetting do
|
||||||
describe "scheme" do
|
describe "scheme" do
|
||||||
|
|
||||||
it "returns http when ssl is disabled" 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")
|
expect(SiteSetting.scheme).to eq("http")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Reference in a new issue