blob: 7b20b00a512123ba8d74163d376920c856322f36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require '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
|