diff options
author | NavaL <ayoyo@thoughtworks.com> | 2016-06-22 19:17:15 +0200 |
---|---|---|
committer | NavaL <ayoyo@thoughtworks.com> | 2016-06-22 19:17:15 +0200 |
commit | e2f19bcfb6dbce77746c2d61715340525b29a592 (patch) | |
tree | 3e0de05c52b7f6ea521ae52f9e99f29014e6d511 /test/integration/api/signup_test.rb | |
parent | 3a5d8543d710bd69eb7bf908f3aef07db72798a9 (diff) |
[feature] expose is_admin in the user api
So that whoever consumes the API can use this attribute to
determine if admin functionalities should be made available to
the current user.
Diffstat (limited to 'test/integration/api/signup_test.rb')
-rw-r--r-- | test/integration/api/signup_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/api/signup_test.rb b/test/integration/api/signup_test.rb index 7216496..05a0abe 100644 --- a/test/integration/api/signup_test.rb +++ b/test/integration/api/signup_test.rb @@ -8,7 +8,7 @@ class SignupTest < SrpTest end test "signup response" do - assert_json_response :login => @login, :ok => true, :id => @user.id, :enabled => true + assert_json_response :login => @login, :ok => true, :is_admin => false, :id => @user.id, :enabled => true assert last_response.successful? end |