wedding-planner/spec/requests/groups_spec.rb

22 lines
462 B
Ruby
Raw Normal View History

2024-11-15 17:29:56 +00:00
# Copyright (C) 2024 Manuel Bustillo
2024-11-15 18:28:45 +01:00
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