wedding-planner/spec/requests/captcha_spec.rb

26 lines
574 B
Ruby
Raw Normal View History

2024-12-28 18:07:22 +01:00
# frozen_string_literal: true
2024-12-01 18:43:28 +00:00
# Copyright (C) 2024 Manuel Bustillo
require 'swagger_helper'
2024-12-28 18:07:22 +01:00
RSpec.describe 'captcha' do
path '/captcha' do
post('create a CAPTCHA challenge') do
tags 'CAPTCHA'
consumes 'application/json'
produces 'application/json'
2024-12-28 18:07:22 +01:00
response(201, 'created') do
schema type: :object,
2024-12-28 18:07:22 +01:00
required: %i[id],
properties: {
id: { type: :string, format: :uuid },
media_url: { type: :string, format: :uri }
}
xit
end
end
end
end