mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Create a Registrant auth controller
This commit is contained in:
parent
9de6c62560
commit
d67e777ea8
4 changed files with 53 additions and 1 deletions
|
@ -0,0 +1,24 @@
|
|||
require 'test_helper'
|
||||
|
||||
class RegistrantApiAuthenticationTest < ApplicationSystemTestCase
|
||||
def setup
|
||||
super
|
||||
|
||||
end
|
||||
|
||||
def teardown
|
||||
super
|
||||
|
||||
end
|
||||
|
||||
def test_request_creates_user_when_one_does_not_exist
|
||||
params = {
|
||||
ident: "30110100103",
|
||||
first_name: "Jan",
|
||||
last_name: "Tamm",
|
||||
country: "ee",
|
||||
}
|
||||
|
||||
post '/api/v1/registrant/auth/eid', params
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue