summaryrefslogtreecommitdiff
path: root/test/integration/api/tmp_user_test.rb
blob: 4c1e6599a5b759443d74db402dce7ed9b0dc45b3 (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('test_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