0
0
Fork 0

Add api_versions to /api/v2/instance (#31354)

This commit is contained in:
Claire 2024-08-21 16:54:59 +02:00 committed by GitHub
parent d67e11733e
commit 19a1acb38b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 1 deletions

View file

@ -18,6 +18,7 @@ describe 'Instances' do
expect(body_as_json)
.to be_present
.and include(title: 'Mastodon')
.and include_api_versions
.and include_configuration_limits
end
end
@ -32,6 +33,7 @@ describe 'Instances' do
expect(body_as_json)
.to be_present
.and include(title: 'Mastodon')
.and include_api_versions
.and include_configuration_limits
end
end
@ -53,5 +55,13 @@ describe 'Instances' do
)
)
end
def include_api_versions
include(
api_versions: include(
mastodon: anything
)
)
end
end
end