DEV: Improve tests to be more specific.

This commit is contained in:
Guo Xiang Tan 2018-11-13 15:02:19 +08:00
parent ac7b058849
commit e28af0429c
1 changed files with 8 additions and 3 deletions

View File

@ -8,10 +8,15 @@ describe SiteSettingsTask do
describe 'export' do
it '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_url
SiteSetting.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
)
end
end