summaryrefslogtreecommitdiff
path: root/test/integration/api/token_test.rb
blob: dafbfb7b560fd13251ff449141c0d9c81c5b6b2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require_relative '../../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