A platform for community discussion. Free, open, simple.
DEV: Improve tests to be more specific.
Guo Xiang Tane28af0429c05
diff --git a/spec/services/site_settings_spec.rb b/spec/services/site_settings_spec.rbindex 7c9bdc49033..0fb1dbff16b 100644--- a/spec/services/site_settings_spec.rb+++ b/spec/services/site_settings_spec.rb@@ -8,10 +8,15 @@ describe SiteSettingsTask dodescribe 'export' doit 'creates a hash of all site settings' do- SiteSetting.sso_url = "https://somewhere.over.com"+ sso_url = "https://somewhere.over.com"+ SiteSetting.sso_url = sso_urlSiteSetting.enable_sso = true- h = SiteSettingsTask.export_to_hash- expect(h.count).to eq(2)+ hash = SiteSettingsTask.export_to_hash++ expect(hash).to eq(+ "enable_sso" => "true",+ "sso_url" => sso_url+ )endend