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:
authorFrancisco Javier López <fjlopez@gitlab.com>2018-01-02 18:06:44 +0300
committerDouwe Maan <douwe@gitlab.com>2018-01-02 18:06:44 +0300
commit2665aea6275cc82888ed3e3ab3dbe384028d663c (patch)
treec293f8e3033667aa992b53f38d2e135093529242 /spec/models
parent3f44c4cedbbd9b72fdf28e83caaec345934e1d8d (diff)
Fix user membership destroy relation
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/user_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index 2557ce71f2b..047a46886c7 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -22,7 +22,9 @@ describe User do
describe 'associations' do
it { is_expected.to have_one(:namespace) }
it { is_expected.to have_many(:snippets).dependent(:destroy) }
- it { is_expected.to have_many(:project_members).dependent(:destroy) }
+ it { is_expected.to have_many(:members) }
+ it { is_expected.to have_many(:project_members) }
+ it { is_expected.to have_many(:group_members) }
it { is_expected.to have_many(:groups) }
it { is_expected.to have_many(:keys).dependent(:destroy) }
it { is_expected.to have_many(:deploy_keys).dependent(:destroy) }