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:
authorhttp://jneen.net/ <jneen@jneen.net>2017-03-01 01:15:27 +0300
committerhttp://jneen.net/ <jneen@jneen.net>2017-03-09 22:49:52 +0300
commitbb0cba920ae5ce46ecc80907c445ddc85f3b4ed1 (patch)
tree2dab14f3df5fdd280644dd406ded9e65d4d3f705 /spec/models/user_spec.rb
parent153d3e57285f2526bc5371dc7109ac9be07ae132 (diff)
don't require ghost users to be blocked
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r--spec/models/user_spec.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index adb5b538922..e1dafe3aa72 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -210,22 +210,6 @@ describe User, models: true do
end
end
end
-
- describe 'ghost users' do
- it 'does not allow a non-blocked ghost user' do
- user = build(:user, :ghost)
- user.state = 'active'
-
- expect(user).to be_invalid
- end
-
- it 'allows a blocked ghost user' do
- user = build(:user, :ghost)
- user.state = 'blocked'
-
- expect(user).to be_valid
- end
- end
end
describe "scopes" do