From 6a59b6f3c57365fb76c82b884461eaa1b3b5eda0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Wed, 10 Jan 2024 14:30:10 +0100 Subject: [PATCH] Improvement in the comprehensibility of tests that convert an event object with a summary. --- .../activitypub/fetch_remote_status_service_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/services/activitypub/fetch_remote_status_service_spec.rb b/spec/services/activitypub/fetch_remote_status_service_spec.rb index 10fa17f3ce0..f3bc8057ccb 100644 --- a/spec/services/activitypub/fetch_remote_status_service_spec.rb +++ b/spec/services/activitypub/fetch_remote_status_service_spec.rb @@ -129,7 +129,7 @@ RSpec.describe ActivityPub::FetchRemoteStatusService, type: :service do end end - context 'with Event object that contains' do + context 'with Event object that contains a summary' do let(:object) do { '@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', location: { 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!', attributedTo: ActivityPub::TagManager.instance.uri_for(sender), }