diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-03 21:07:29 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-03 21:07:29 +0000 |
commit | 1da3754b25657f49afdcb0b942506d365b1ee89d (patch) | |
tree | 9f4bfa94fdd1762ef99e6a61bf180ac8cd7b5616 /spec/models/namespace_spec.rb | |
parent | 25521def84a6987fe9d4265b560e930bfb32c195 (diff) | |
download | gitlab-ce-1da3754b25657f49afdcb0b942506d365b1ee89d.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/namespace_spec.rb')
-rw-r--r-- | spec/models/namespace_spec.rb | 26 |
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 |