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:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-04 00:07:29 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-04 00:07:29 +0300
commit1da3754b25657f49afdcb0b942506d365b1ee89d (patch)
tree9f4bfa94fdd1762ef99e6a61bf180ac8cd7b5616 /spec/models/namespace_spec.rb
parent25521def84a6987fe9d4265b560e930bfb32c195 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/namespace_spec.rb')
-rw-r--r--spec/models/namespace_spec.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/models/namespace_spec.rb b/spec/models/namespace_spec.rb
index a4d60467071..797be0d1fe2 100644
--- a/spec/models/namespace_spec.rb
+++ b/spec/models/namespace_spec.rb
@@ -896,32 +896,6 @@ describe Namespace do
end
end
end
-
- context 'when :emails_disabled feature flag is off' do
- before do
- stub_feature_flags(emails_disabled: false)
- end
-
- context 'when not a subgroup' do
- it 'returns false' do
- group = create(:group, emails_disabled: true)
-
- expect(group.emails_disabled?).to be_falsey
- end
- end
-
- context 'when a subgroup and ancestor emails are disabled' do
- let(:grandparent) { create(:group) }
- let(:parent) { create(:group, parent: grandparent) }
- let(:group) { create(:group, parent: parent) }
-
- it 'returns false' do
- grandparent.update_attribute(:emails_disabled, true)
-
- expect(group.emails_disabled?).to be_falsey
- end
- end
- end
end
describe '#pages_virtual_domain' do