mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 21:41:26 +08:00
Make it possible to set a site setting to empty string
This commit is contained in:
@ -34,10 +34,10 @@ describe Admin::SiteSettingsController do
|
||||
xhr :put, :update, id: 'test_setting', value: 'hello'
|
||||
end
|
||||
|
||||
# it 'allows value to be a blank string' do
|
||||
# SiteSetting.expects(:'test_setting=').with('').once
|
||||
# xhr :put, :update, id: 'test_setting', value: ''
|
||||
# end
|
||||
it 'allows value to be a blank string' do
|
||||
SiteSetting.expects(:'test_setting=').with('').once
|
||||
xhr :put, :update, id: 'test_setting', value: ''
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user