Fix failure to verify changes in api/v1/accounts/credentials spec (#35951)
Some checks are pending
Check i18n / check-i18n (push) Waiting to run
CodeQL / Analyze (javascript) (push) Waiting to run
CodeQL / Analyze (ruby) (push) Waiting to run
Check formatting / lint (push) Waiting to run
Ruby Linting / lint (push) Waiting to run
Historical data migration test / test (14-alpine) (push) Waiting to run
Historical data migration test / test (15-alpine) (push) Waiting to run
Historical data migration test / test (16-alpine) (push) Waiting to run
Historical data migration test / test (17-alpine) (push) Waiting to run
Ruby Testing / build (production) (push) Waiting to run
Ruby Testing / build (test) (push) Waiting to run
Ruby Testing / test (.ruby-version) (push) Blocked by required conditions
Ruby Testing / test (3.2) (push) Blocked by required conditions
Ruby Testing / test (3.3) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (.ruby-version) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (3.2) (push) Blocked by required conditions
Ruby Testing / ImageMagick tests (3.3) (push) Blocked by required conditions
Ruby Testing / End to End testing (.ruby-version) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.2) (push) Blocked by required conditions
Ruby Testing / End to End testing (3.3) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, docker.elastic.co/elasticsearch/elasticsearch:8.10.2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (.ruby-version, opensearchproject/opensearch:2) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.2, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions
Ruby Testing / Elastic Search integration testing (3.3, docker.elastic.co/elasticsearch/elasticsearch:7.17.13) (push) Blocked by required conditions

This commit is contained in:
Matt Jankowski 2025-08-29 04:14:23 -04:00 committed by GitHub
parent 97d80265b4
commit 5f1e6a5886
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,20 +101,14 @@ RSpec.describe 'credentials API' do
.to have_http_status(200) .to have_http_status(200)
expect(response.content_type) expect(response.content_type)
.to start_with('application/json') .to start_with('application/json')
expect(response.parsed_body)
expect(response.parsed_body).to include({ .to include({
source: hash_including({ source: hash_including({
discoverable: true, discoverable: true,
indexable: true, indexable: true,
}), }),
locked: false, locked: false,
}) })
expect(ActivityPub::UpdateDistributionWorker)
.to have_enqueued_sidekiq_job(user.account_id)
end
def expect_account_updates
expect(user.account.reload) expect(user.account.reload)
.to have_attributes( .to have_attributes(
display_name: eq("Alice Isn't Dead"), display_name: eq("Alice Isn't Dead"),
@ -123,14 +117,13 @@ RSpec.describe 'credentials API' do
header: exist, header: exist,
attribution_domains: ['example.com'] attribution_domains: ['example.com']
) )
end
def expect_user_updates
expect(user.reload) expect(user.reload)
.to have_attributes( .to have_attributes(
setting_default_privacy: eq('unlisted'), setting_default_privacy: eq('unlisted'),
setting_default_sensitive: be(true) setting_default_sensitive: be(true)
) )
expect(ActivityPub::UpdateDistributionWorker)
.to have_enqueued_sidekiq_job(user.account_id)
end end
end end
end end