Adopt tests for converted objects: The convertet text contains \n\n between the converted parts.

This commit is contained in:
André Menrath 2024-01-09 15:32:43 +01:00
parent 2e7b916a4c
commit d9aaf4e467
1 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ RSpec.describe ActivityPub::FetchRemoteStatusService, type: :service do
expect(status).to_not be_nil
expect(status.url).to eq 'https://foo.bar/watch?v=12345'
expect(strip_tags(status.text)).to eq 'Nyan Cat 10 hours remixhttps://foo.bar/watch?v=12345'
expect(strip_tags(status.text)).to eq 'Nyan Cat 10 hours remix\n\nhttps://foo.bar/watch?v=12345'
end
end
@ -105,7 +105,7 @@ RSpec.describe ActivityPub::FetchRemoteStatusService, type: :service do
expect(status).to_not be_nil
expect(status.url).to eq 'https://foo.bar/watch?v=12345'
expect(strip_tags(status.text)).to eq 'Nyan Cat 10 hours remixhttps://foo.bar/watch?v=12345'
expect(strip_tags(status.text)).to eq 'Nyan Cat 10 hours remix\n\nhttps://foo.bar/watch?v=12345'
end
end
@ -125,7 +125,7 @@ RSpec.describe ActivityPub::FetchRemoteStatusService, type: :service do
expect(status).to_not be_nil
expect(status.url).to eq 'https://foo.bar/@foo/1234'
expect(strip_tags(status.text)).to eq "Let's change the worldhttps://foo.bar/@foo/1234"
expect(strip_tags(status.text)).to eq 'Let\'s change the world\n\nhttps://foo.bar/@foo/1234'
end
end