mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-14 03:57:50 -05:00
Assert GET /api/v2/instance with the OpenAPI schemas
This commit is contained in:
@@ -21,6 +21,8 @@ RSpec.describe 'Instances' do
|
||||
.and include(title: 'Mastodon')
|
||||
.and include_api_versions
|
||||
.and include_configuration_limits
|
||||
|
||||
assert_schema_conform(200)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -39,6 +41,8 @@ RSpec.describe 'Instances' do
|
||||
.and include(title: 'Mastodon')
|
||||
.and include_api_versions
|
||||
.and include_configuration_limits
|
||||
|
||||
assert_schema_conform(200)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -59,6 +63,8 @@ RSpec.describe 'Instances' do
|
||||
expect(response.parsed_body)
|
||||
.to be_present
|
||||
.and include(wrapstodon: 2025)
|
||||
|
||||
assert_schema_conform(200)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user