diff options
author | pluralcafe-docker <git@plural.cafe> | 2018-11-02 00:56:08 +0000 |
---|---|---|
committer | pluralcafe-docker <git@plural.cafe> | 2018-11-02 00:56:08 +0000 |
commit | 521df92d8ccdc715b3ee9e1ccea63fbd6810f5c5 (patch) | |
tree | 3726f4f70214171ab56fc0f8803d669ce4c9efe0 /spec/services/notify_service_spec.rb | |
parent | 431c09bfbe07715a2a88846864179a419d72ab59 (diff) | |
parent | 34209c0340ca6b7c61de964a17f5f3fe2e0f7c7b (diff) |
Merge branch 'glitch'
Diffstat (limited to 'spec/services/notify_service_spec.rb')
-rw-r--r-- | spec/services/notify_service_spec.rb | 26 |
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 |