REPP: Contact list tests

This commit is contained in:
Karl Erik Õunapuu 2020-10-19 16:29:28 +03:00
parent 87dff41a4e
commit d1e877502d
No known key found for this signature in database
GPG key ID: C9DD647298A34764
2 changed files with 45 additions and 14 deletions

View file

@ -2,8 +2,8 @@ require 'test_helper'
class ReppV1BaseTest < ActionDispatch::IntegrationTest
def setup
@registrant = users(:api_bestnames)
token = Base64.encode64("#{@registrant.username}:#{@registrant.plain_text_password}")
@registrar = users(:api_bestnames)
token = Base64.encode64("#{@registrar.username}:#{@registrar.plain_text_password}")
token = "Basic #{token}"
@auth_headers = { 'Authorization' => token }