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

25 lines
517 B
Ruby
Raw Normal View History

2024-12-28 18:07:22 +01:00
# frozen_string_literal: true
2024-11-30 17:47:30 +00:00
# Copyright (C) 2024 Manuel Bustillo
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