wedding-planner/spec/requests/users/confirmations_spec.rb

25 lines
539 B
Ruby
Raw Permalink Normal View History

2025-01-23 21:34:23 +00:00
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
# frozen_string_literal: true
2024-11-30 18:46:25 +01:00
require 'swagger_helper'
2024-12-28 18:07:22 +01:00
RSpec.describe 'users/confirmations' do
path '/{slug}/users/confirmation' do
2024-11-30 18:46:25 +01:00
get('confirm user email') do
tags 'Users'
produces 'application/json'
parameter Swagger::Schema::SLUG
2024-11-30 18:46:25 +01:00
parameter name: :confirmation_token, in: :query, type: :string, required: true
response(200, 'confirmed') do
schema Swagger::Schema::USER
xit
end
2024-12-28 18:07:22 +01:00
response422
2024-11-30 18:46:25 +01:00
end
end
end