From 276fd702e8a3a37276ccb31cc435b34e105f2aec Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 12 Feb 2015 15:01:14 +1100 Subject: [PATCH] missed a send which caused code to break --- lib/site_setting_extension.rb | 2 +- spec/models/site_setting_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/site_setting_extension.rb b/lib/site_setting_extension.rb index 44e47693d97..77609857f3f 100644 --- a/lib/site_setting_extension.rb +++ b/lib/site_setting_extension.rb @@ -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| diff --git a/spec/models/site_setting_spec.rb b/spec/models/site_setting_spec.rb index 8e6445bfedf..ced13c11f54 100644 --- a/spec/models/site_setting_spec.rb +++ b/spec/models/site_setting_spec.rb @@ -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