summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2018-04-05 11:14:26 +0200
committerDouwe Maan <douwe@selenight.nl>2018-04-05 11:14:32 +0200
commit7de250fb81fb24f8e905cfb330072206c4a8a40a (patch)
treef5545cd212e4c6c6ac743a202b3b5763453b8ce7 /spec
parenteaed588bf228c833cb666a61bc7d25cf21d5f94b (diff)
downloadgitlab-ce-7de250fb81fb24f8e905cfb330072206c4a8a40a.tar.gz
Ensure internal users (ghost, support bot) get assigned a namespacedm-internal-user-namespace
Diffstat (limited to 'spec')
-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