diff --git a/spec/lib/activitypub/activity/create_spec.rb b/spec/lib/activitypub/activity/create_spec.rb index 80bdce49bac..5beb47830c8 100644 --- a/spec/lib/activitypub/activity/create_spec.rb +++ b/spec/lib/activitypub/activity/create_spec.rb @@ -137,7 +137,7 @@ RSpec.describe ActivityPub::Activity::Create do end it 'ignores unprocessable mention', :aggregate_failures do - stub_request(:get, invalid_mention_json[:tag][:href]).to_return(status: 500) + stub_request(:get, invalid_mention_json[:tag][:href]).to_raise(HTTP::ConnectionError) # When receiving the post that contains an invalid mention… described_class.new(activity_for_object(invalid_mention_json), sender, delivery: true).perform