wedding-planner/spec/requests/captcha_spec.rb
Manuel Bustillo b237239a1f
Some checks failed
Check usage of free licenses / check-licenses (pull_request) Failing after 48s
Add copyright notice / copyright_notice (pull_request) Successful in 57s
Run unit tests / unit_tests (pull_request) Failing after 3m28s
Define an endpoint to retrieve a LibreCaptcha captcha
2024-12-01 19:42:25 +01:00

23 lines
493 B
Ruby

require 'swagger_helper'
RSpec.describe 'captcha', type: :request do
path '/captcha' do
post('create a CAPTCHA challenge') do
tags 'CAPTCHA'
consumes 'application/json'
produces 'application/json'
response(201, 'created') do
schema type: :object,
required: %i[id],
properties: {
id: { type: :string, format: :uuid }
media_url: { type: :string, format: :uri }
}
xit
end
end
end
end