summaryrefslogtreecommitdiff
path: root/spec/requests/api/users_spec.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-06-23 22:36:35 -0700
committerStan Hu <stanhu@gmail.com>2015-06-23 22:41:59 -0700
commit6548e9b48c079bb29cfe61eff99179e880583641 (patch)
treed189ff431a8b85f9e39c978f99e8fe3d87a97b43 /spec/requests/api/users_spec.rb
parent764b5913c8f960d09d4777e3233662f507b0ec13 (diff)
downloadgitlab-ce-6548e9b48c079bb29cfe61eff99179e880583641.tar.gz
Add 2FA status to user admin API
Closes https://github.com/gitlabhq/gitlabhq/issues/9391
Diffstat (limited to 'spec/requests/api/users_spec.rb')
-rw-r--r--spec/requests/api/users_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/requests/api/users_spec.rb b/spec/requests/api/users_spec.rb
index c10998e171f..1a29058f3f1 100644
--- a/spec/requests/api/users_spec.rb
+++ b/spec/requests/api/users_spec.rb
@@ -35,6 +35,7 @@ describe API::API, api: true do
expect(json_response.first.keys).to include 'email'
expect(json_response.first.keys).to include 'identities'
expect(json_response.first.keys).to include 'can_create_project'
+ expect(json_response.first.keys).to include 'two_factor_enabled'
end
end
end