Fix some incorrect tests (#26035)
This commit is contained in:
parent
626f9cf831
commit
f18618d7f9
2 changed files with 4 additions and 4 deletions
|
@ -34,11 +34,11 @@ RSpec.describe BatchedRemoveStatusService, type: :service do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'removes statuses from author\'s home feed' do
|
it 'removes statuses from author\'s home feed' do
|
||||||
expect(HomeFeed.new(alice).get(10)).to_not include([status_alice_hello.id, status_alice_other.id])
|
expect(HomeFeed.new(alice).get(10).pluck(:id)).to_not include(status_alice_hello.id, status_alice_other.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'removes statuses from local follower\'s home feed' do
|
it 'removes statuses from local follower\'s home feed' do
|
||||||
expect(HomeFeed.new(jeff).get(10)).to_not include([status_alice_hello.id, status_alice_other.id])
|
expect(HomeFeed.new(jeff).get(10).pluck(:id)).to_not include(status_alice_hello.id, status_alice_other.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'notifies streaming API of followers' do
|
it 'notifies streaming API of followers' do
|
||||||
|
|
|
@ -28,12 +28,12 @@ RSpec.describe RemoveStatusService, type: :service do
|
||||||
|
|
||||||
it 'removes status from author\'s home feed' do
|
it 'removes status from author\'s home feed' do
|
||||||
subject.call(@status)
|
subject.call(@status)
|
||||||
expect(HomeFeed.new(alice).get(10)).to_not include(@status.id)
|
expect(HomeFeed.new(alice).get(10).pluck(:id)).to_not include(@status.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'removes status from local follower\'s home feed' do
|
it 'removes status from local follower\'s home feed' do
|
||||||
subject.call(@status)
|
subject.call(@status)
|
||||||
expect(HomeFeed.new(jeff).get(10)).to_not include(@status.id)
|
expect(HomeFeed.new(jeff).get(10).pluck(:id)).to_not include(@status.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'sends Delete activity to followers' do
|
it 'sends Delete activity to followers' do
|
||||||
|
|
Loading…
Reference in a new issue