diff options
author | Atsushi Yamamoto <yamaatsushi927@gmail.com> | 2017-05-29 11:56:13 -0400 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-29 17:56:13 +0200 |
commit | 402c19a92475014e04df91eca759225f8a89d2ac (patch) | |
tree | 76262cf99e34295d2e9acae0ab7858ff2fdc2796 /spec/lib | |
parent | b5e89948441eb245a873260a87bfb49fb334aee1 (diff) |
Add preference setting for delete toot modal (#3368)
* Set delete_modal preference to true by default * Does not show confirmation modal if delete_modal is false * Add ja translation for preference setting page
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 466c57fa5..66e42fa0e 100644 --- a/spec/lib/user_settings_decorator_spec.rb +++ b/spec/lib/user_settings_decorator_spec.rb @@ -35,6 +35,13 @@ describe UserSettingsDecorator do expect(user.settings['boost_modal']).to eq true end + it 'updates the user settings value for delete toot modal' do + values = { 'setting_delete_modal' => '0' } + + settings.update(values) + expect(user.settings['delete_modal']).to eq false + end + it 'updates the user settings value for gif auto play' do values = { 'setting_auto_play_gif' => '0' } |