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

class TmpUserTest < SrpTest

  setup do
    register_user('tmp_user_'+SecureRandom.hex(5))
  end

  test "login with srp" do
    authenticate
    assert_nil server_auth["errors"]
    assert_nil server_auth["error"]
    assert_equal ["M2", "id", "token"], server_auth.keys
    assert last_response.successful?
    assert server_auth["M2"]
  end

end