mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Adopt tests for converted objects: The convertet text contains \n\n between the converted parts.
This commit is contained in:
parent
2e7b916a4c
commit
d9aaf4e467
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue