about summary refs log tree commit diff
path: root/spec/lib
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-07-19 00:14:43 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-18 17:14:43 +0200
commit3267e4a7851b57bef7d16da4b7c66764f63d4416 (patch)
tree94eb3408ff12b80392f9a680ccfce8fa2e32be56 /spec/lib
parent89b988cab5e4729bd80400a2b25ec2b790ebd18d (diff)
Add unfollow modal (optional) (#4246)
* Add unfollow modal

* unfollowing someone

* remove unnecessary prop
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/user_settings_decorator_spec.rb7
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 a67487779..6fbf6536b 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['default_sensitive']).to eq true
     end
 
+    it 'updates the user settings value for unfollow modal' do
+      values = { 'setting_unfollow_modal' => '0' }
+
+      settings.update(values)
+      expect(user.settings['unfollow_modal']).to eq false
+    end
+
     it 'updates the user settings value for boost modal' do
       values = { 'setting_boost_modal' => '1' }