missed a send which caused code to break

This commit is contained in:
Sam 2015-02-12 15:01:14 +11:00
parent ab3d4471fe
commit 276fd702e8
2 changed files with 2 additions and 2 deletions

View File

@ -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|

View File

@ -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