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

class SignupTest < SrpTest

  setup do
    register_user
  end

  test "signup response" do
    assert_json_response :login => @login, :ok => true, :is_admin => false, :id => @user.id, :enabled => true
    assert last_response.successful?
  end

  test "signup creates user" do
    assert @user
    assert_equal @login, @user.login
  end
end