wedding-planner/spec/requests/tokens_spec.rb
Manuel Bustillo 438de103ec
All checks were successful
Check usage of free licenses / check-licenses (pull_request) Successful in 1m18s
Add copyright notice / copyright_notice (pull_request) Successful in 2m29s
Run unit tests / unit_tests (pull_request) Successful in 5m33s
Define a dummy endpoint to return a valid CSRF token
2024-12-08 09:32:34 +01:00

14 lines
273 B
Ruby

require 'swagger_helper'
RSpec.describe 'tokens', type: :request do
path '/token' do
get('get a cookie with CSRF token') do
tags 'CSRF token'
consumes 'application/json'
produces 'application/json'
response_empty_200
end
end
end