1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Improvement in the comprehensibility of tests that convert an event object with a summary.

This commit is contained in:
André Menrath 2024-01-10 14:30:10 +01:00
parent a7dc739efd
commit 6a59b6f3c5

View file

@ -129,7 +129,7 @@ RSpec.describe ActivityPub::FetchRemoteStatusService, type: :service do
end end
end end
context 'with Event object that contains' do context 'with Event object that contains a summary' do
let(:object) do let(:object) do
{ {
'@context': 'https://www.w3.org/ns/activitystreams', '@context': 'https://www.w3.org/ns/activitystreams',
@ -139,9 +139,9 @@ RSpec.describe ActivityPub::FetchRemoteStatusService, type: :service do
startTime: '2024-01-31T20:00:00.000+01:00', startTime: '2024-01-31T20:00:00.000+01:00',
location: { location: {
type: 'Place', type: 'Place',
name: 'FooBar', name: 'FooBar The not converted location',
}, },
content: 'Some description of the event object that does not get converted.', content: 'The not converted description of the event object.',
summary: 'We meet on January 31st at 8pm in the FooBaar!', summary: 'We meet on January 31st at 8pm in the FooBaar!',
attributedTo: ActivityPub::TagManager.instance.uri_for(sender), attributedTo: ActivityPub::TagManager.instance.uri_for(sender),
} }