blob: 3b83f239308acff4674d1c1a71ddc12a62ba1e5c (
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 TokenAuthTest < 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
|