summaryrefslogtreecommitdiffstats
path: root/spec/services/batched_remove_status_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/batched_remove_status_service_spec.rb')
-rw-r--r--spec/services/batched_remove_status_service_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/services/batched_remove_status_service_spec.rb b/spec/services/batched_remove_status_service_spec.rb
index f84256f187e..239859f0668 100644
--- a/spec/services/batched_remove_status_service_spec.rb
+++ b/spec/services/batched_remove_status_service_spec.rb
@@ -26,6 +26,11 @@ RSpec.describe BatchedRemoveStatusService, type: :service do
subject.call([status1, status2])
end
+ it 'removes statuses' do
+ expect { Status.find(status1.id) }.to raise_error ActiveRecord::RecordNotFound
+ expect { Status.find(status2.id) }.to raise_error ActiveRecord::RecordNotFound
+ end
+
it 'removes statuses from author\'s home feed' do
expect(HomeFeed.new(alice).get(10)).to_not include([status1.id, status2.id])
end