summaryrefslogtreecommitdiff
path: root/test/integration/api/token_test.rb
blob: ad3ac22df347230f8fe897bbb3fb962dce4e5e92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'test_helper'
require_relative 'srp_test'

class TokenTest < SrpTest

  setup do
    register_user
  end

  test "stores token SHA512 encoded" do
    authenticate
    token = server_auth['token']
    assert Token.find(Digest::SHA512.hexdigest(token))
  end
end