Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-09-27 13:19:12 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-09-27 14:04:39 +0300
commitc17383a73075f79ffd4b220ba415efa6bf4716b5 (patch)
tree47cd486ef093181003acf1f8d9c6a1ca29baf107 /spec/requests
parentd0b556eb1b9d4bcdfa2eeb21a99d9675eca64f25 (diff)
Improvements to user organization field feature after code review
* Add newline to user organization spec according to test guide * Remove unnecessary comments from user organization database migration Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'spec/requests')
-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 e11dbfef591..c5a1cdf8c32 100644
--- a/spec/requests/api/users_spec.rb
+++ b/spec/requests/api/users_spec.rb
@@ -267,6 +267,7 @@ describe API::API, api: true do
it "updates user with organization" do
put api("/users/#{user.id}", admin), { organization: 'GitLab' }
+
expect(response).to have_http_status(200)
expect(json_response['organization']).to eq('GitLab')
expect(user.reload.organization).to eq('GitLab')