diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-07-10 21:00:32 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-10 14:00:32 +0200 |
commit | 2b9721d1b38319d70bed98e76a0fe1d648780298 (patch) | |
tree | 4e1994def2b461c88b86eea164aa1223069878fb /spec/lib | |
parent | 617208053c2bf935d2dd3944bb2b9192a388f0b4 (diff) |
Add setting a always mark media as sensitive (#4136)
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/user_settings_decorator_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/lib/user_settings_decorator_spec.rb b/spec/lib/user_settings_decorator_spec.rb index e1ba56d97..a67487779 100644 --- a/spec/lib/user_settings_decorator_spec.rb +++ b/spec/lib/user_settings_decorator_spec.rb @@ -28,6 +28,13 @@ describe UserSettingsDecorator do expect(user.settings['default_privacy']).to eq 'public' end + it 'updates the user settings value for sensitive' do + values = { 'setting_default_sensitive' => '1' } + + settings.update(values) + expect(user.settings['default_sensitive']).to eq true + end + it 'updates the user settings value for boost modal' do values = { 'setting_boost_modal' => '1' } |