This commit is contained in:
Pete Matsyburka
2024-10-25 16:03:52 +03:00
parent 3975a03cb4
commit 72bbdb38bf
4 changed files with 27 additions and 3 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ RSpec.describe 'API Settings' do
it 'shows verify signed PDF page' do
expect(page).to have_content('API')
expect(page).to have_field('X-Auth-Token', with: user.access_token.token)
token = user.access_token.token
expect(page).to have_field('X-Auth-Token', with: token.sub(token[5..], '*' * token[5..].size))
end
end