Reword description of some existing tests

This commit is contained in:
Claire 2022-05-20 16:24:33 +02:00
parent 2cb12220dd
commit 3b32afdbe3

View file

@ -24,12 +24,12 @@ RSpec.describe Status::ThreadingConcern do
expect(reply_to_second_reply.ancestors(4, viewer)).to_not include(reply_to_status, status) expect(reply_to_second_reply.ancestors(4, viewer)).to_not include(reply_to_status, status)
end end
it 'does not return conversation history from blocked users' do it 'does not return conversation history from users blocked by the viewer' do
viewer.block!(jeff) viewer.block!(jeff)
expect(reply_to_second_reply.ancestors(4, viewer)).to_not include(reply_to_status) expect(reply_to_second_reply.ancestors(4, viewer)).to_not include(reply_to_status)
end end
it 'does not return conversation history from muted users' do it 'does not return conversation history from users muted by the viewer' do
viewer.mute!(jeff) viewer.mute!(jeff)
expect(reply_to_second_reply.ancestors(4, viewer)).to_not include(reply_to_status) expect(reply_to_second_reply.ancestors(4, viewer)).to_not include(reply_to_status)
end end
@ -39,7 +39,7 @@ RSpec.describe Status::ThreadingConcern do
expect(reply_to_second_reply.ancestors(4, viewer)).to_not include(reply_to_status) expect(reply_to_second_reply.ancestors(4, viewer)).to_not include(reply_to_status)
end end
it 'does not return conversation history from blocked domains' do it 'does not return conversation history from domains blocked by the viewer' do
viewer.block_domain!('example.com') viewer.block_domain!('example.com')
expect(reply_to_second_reply.ancestors(4, viewer)).to_not include(reply_to_first_reply) expect(reply_to_second_reply.ancestors(4, viewer)).to_not include(reply_to_first_reply)
end end
@ -99,12 +99,12 @@ RSpec.describe Status::ThreadingConcern do
expect(status.descendants(4, viewer)).to_not include(reply_to_status_from_alice, reply_to_alice_reply_from_jeff) expect(status.descendants(4, viewer)).to_not include(reply_to_status_from_alice, reply_to_alice_reply_from_jeff)
end end
it 'does not return replies from blocked users' do it 'does not return replies from users blocked by the viewer' do
viewer.block!(jeff) viewer.block!(jeff)
expect(status.descendants(4, viewer)).to_not include(reply_to_alice_reply_from_jeff) expect(status.descendants(4, viewer)).to_not include(reply_to_alice_reply_from_jeff)
end end
it 'does not return replies from muted users' do it 'does not return replies from users muted by the viewer' do
viewer.mute!(jeff) viewer.mute!(jeff)
expect(status.descendants(4, viewer)).to_not include(reply_to_alice_reply_from_jeff) expect(status.descendants(4, viewer)).to_not include(reply_to_alice_reply_from_jeff)
end end
@ -114,7 +114,7 @@ RSpec.describe Status::ThreadingConcern do
expect(status.descendants(4, viewer)).to_not include(reply_to_alice_reply_from_jeff) expect(status.descendants(4, viewer)).to_not include(reply_to_alice_reply_from_jeff)
end end
it 'does not return replies from blocked domains' do it 'does not return replies from domains blocked by the viewer' do
viewer.block_domain!('example.com') viewer.block_domain!('example.com')
expect(status.descendants(4, viewer)).to_not include(reply_to_status_from_bob) expect(status.descendants(4, viewer)).to_not include(reply_to_status_from_bob)
end end