22 lines
462 B
Ruby
22 lines
462 B
Ruby
# Copyright (C) 2024 Manuel Bustillo
|
|
|
|
require 'swagger_helper'
|
|
|
|
RSpec.describe 'groups', type: :request do
|
|
path '/groups' do
|
|
get('list groups') do
|
|
response(200, 'successful') do
|
|
|
|
after do |example|
|
|
example.metadata[:response][:content] = {
|
|
'application/json' => {
|
|
example: JSON.parse(response.body, symbolize_names: true)
|
|
}
|
|
}
|
|
end
|
|
run_test!
|
|
end
|
|
end
|
|
end
|
|
end
|