From a4d49c236d1c3bd53dc944ba1062d4d7e76007ce Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Fri, 22 Dec 2023 07:57:29 -0500 Subject: [PATCH] Fix `RSpec/LetSetup` cop in ap/fetch_featured_collection_service (#28461) --- .rubocop_todo.yml | 1 - .../activitypub/fetch_featured_collection_service_spec.rb | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 11bacb3b1d..6dcdb3b835 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -48,7 +48,6 @@ RSpec/ExampleLength: RSpec/LetSetup: Exclude: - 'spec/models/account_statuses_cleanup_policy_spec.rb' - - 'spec/services/activitypub/fetch_featured_collection_service_spec.rb' RSpec/MultipleExpectations: Max: 8 diff --git a/spec/services/activitypub/fetch_featured_collection_service_spec.rb b/spec/services/activitypub/fetch_featured_collection_service_spec.rb index 466da891a8..a98108cea3 100644 --- a/spec/services/activitypub/fetch_featured_collection_service_spec.rb +++ b/spec/services/activitypub/fetch_featured_collection_service_spec.rb @@ -87,6 +87,7 @@ RSpec.describe ActivityPub::FetchFeaturedCollectionService, type: :service do 'https://example.com/account/pinned/unknown-inlined', 'https://example.com/account/pinned/unknown-reachable' ) + expect(actor.pinned_statuses).to_not include(known_status) end end