about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-10-30 14:20:25 +0100
committerGitHub <noreply@github.com>2018-10-30 14:20:25 +0100
commit7f24242ef6d3e6b64f9116dedc3ad60048b4c1bc (patch)
treeda19d2883856a99ba2a0b7caddff8b67683a070a /spec
parent7ec3f6022d5c991bb584c481a29c416e9f1c5438 (diff)
parent48be335f4f64c5513bb4b0d760225ceca78416c2 (diff)
Merge pull request #801 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec')
-rw-r--r--spec/services/notify_service_spec.rb26
1 files changed, 3 insertions, 23 deletions
diff --git a/spec/services/notify_service_spec.rb b/spec/services/notify_service_spec.rb
index ff64eccbe..7bfca7fb5 100644
--- a/spec/services/notify_service_spec.rb
+++ b/spec/services/notify_service_spec.rb
@@ -47,26 +47,6 @@ RSpec.describe NotifyService, type: :service do
     recipient.update(suspended: true)
     is_expected.to_not change(Notification, :count)
   end
-
-  describe 'reblogs' do
-    let(:status)   { Fabricate(:status, account: Fabricate(:account)) }
-    let(:activity) { Fabricate(:status, account: sender, reblog: status) }
-
-    it 'shows reblogs by default' do
-      recipient.follow!(sender)
-      is_expected.to change(Notification, :count)
-    end
-
-    it 'shows reblogs when explicitly enabled' do
-      recipient.follow!(sender, reblogs: true)
-      is_expected.to change(Notification, :count)
-    end
-
-    it 'hides reblogs when disabled' do
-      recipient.follow!(sender, reblogs: false)
-      is_expected.to_not change(Notification, :count)
-    end
-  end
   
   context 'for direct messages' do
     let(:activity) { Fabricate(:mention, account: recipient, status: Fabricate(:status, account: sender, visibility: :direct)) }
@@ -124,9 +104,9 @@ RSpec.describe NotifyService, type: :service do
       is_expected.to change(Notification, :count)
     end
 
-    it 'hides reblogs when disabled' do
-      recipient.follow!(sender, reblogs: false)
-      is_expected.to_not change(Notification, :count)
+    it 'shows reblogs when disabled' do
+      recipient.follow!(sender, reblogs: true)
+      is_expected.to change(Notification, :count)
     end
   end