diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index f87237e28d30c9..cbb7933b04e79d 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -38,6 +38,7 @@ RSpec/MultipleExpectations: RSpec/MultipleMemoizedHelpers: Max: 17 Exclude: + - 'spec/lib/activitypub/activity/create_spec.rb' - 'spec/services/delete_account_service_spec.rb' - 'spec/services/fan_out_on_write_service_spec.rb' diff --git a/spec/lib/activitypub/activity/create_spec.rb b/spec/lib/activitypub/activity/create_spec.rb index 4fd0412b6d9762..d9cd0494f07891 100644 --- a/spec/lib/activitypub/activity/create_spec.rb +++ b/spec/lib/activitypub/activity/create_spec.rb @@ -16,7 +16,7 @@ }.with_indifferent_access end - let(:conversation) do + let(:conversation_hash) do { id: 'http://example.com/conversation', type: 'Group', @@ -30,7 +30,7 @@ stub_request(:get, 'http://example.com/attachment.png').to_return(request_fixture('avatar.txt')) stub_request(:get, 'http://example.com/emoji.png').to_return(body: attachment_fixture('emojo.png')) stub_request(:get, 'http://example.com/emojib.png').to_return(body: attachment_fixture('emojo.png'), headers: { 'Content-Type' => 'application/octet-stream' }) - stub_request(:get, 'http://example.com/conversation').to_return(body: Oj.dump(conversation), headers: { 'Content-Type': 'application/activity+json' }) + stub_request(:get, 'http://example.com/conversation').to_return(body: Oj.dump(conversation_hash), headers: { 'Content-Type': 'application/activity+json' }) stub_request(:get, 'http://example.com/invalid-conversation').to_return(status: 404) end