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:
authorDouwe Maan <douwe@selenight.nl>2018-04-05 12:14:26 +0300
committerDouwe Maan <douwe@selenight.nl>2018-04-05 12:14:32 +0300
commit7de250fb81fb24f8e905cfb330072206c4a8a40a (patch)
treef5545cd212e4c6c6ac743a202b3b5763453b8ce7 /spec/models/user_spec.rb
parenteaed588bf228c833cb666a61bc7d25cf21d5f94b (diff)
Ensure internal users (ghost, support bot) get assigned a namespace
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r--spec/models/user_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index 4027c420e47..a600987d0bf 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -2071,6 +2071,8 @@ describe User do
expect(ghost).to be_ghost
expect(ghost).to be_persisted
+ expect(ghost.namespace).not_to be_nil
+ expect(ghost.namespace).to be_persisted
end
it "does not create a second ghost user if one is already present" do