diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-20 18:38:24 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-20 18:38:24 +0000 |
commit | 983a0bba5d2a042c4a3bbb22432ec192c7501d82 (patch) | |
tree | b153cd387c14ba23bd5a07514c7c01fddf6a78a0 /spec/models/project_spec.rb | |
parent | a2bddee2cdb38673df0e004d5b32d9f77797de64 (diff) | |
download | gitlab-ce-983a0bba5d2a042c4a3bbb22432ec192c7501d82.tar.gz |
Add latest changes from gitlab-org/gitlab@12-10-stable-ee
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r-- | spec/models/project_spec.rb | 40 |
1 files changed, 4 insertions, 36 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 3c8afee4466..4e75ef4fc87 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -1740,32 +1740,12 @@ describe Project do let_it_be(:group) { create(:group) } let_it_be(:project) { create(:project, group: group) } - context 'when feature is enabled' do - before do - stub_feature_flags(project_search_by_full_path: true) - end - - it 'returns projects that match the group path' do - expect(described_class.search(group.path, include_namespace: true)).to eq([project]) - end - - it 'returns projects that match the full path' do - expect(described_class.search(project.full_path, include_namespace: true)).to eq([project]) - end + it 'returns projects that match the group path' do + expect(described_class.search(group.path, include_namespace: true)).to eq([project]) end - context 'when feature is disabled' do - before do - stub_feature_flags(project_search_by_full_path: false) - end - - it 'returns no results when searching by group path' do - expect(described_class.search(group.path, include_namespace: true)).to be_empty - end - - it 'returns no results when searching by full path' do - expect(described_class.search(project.full_path, include_namespace: true)).to be_empty - end + it 'returns projects that match the full path' do + expect(described_class.search(project.full_path, include_namespace: true)).to eq([project]) end end @@ -2665,18 +2645,6 @@ describe Project do end end - describe '#daily_statistics_enabled?' do - it { is_expected.to be_daily_statistics_enabled } - - context 'when :project_daily_statistics is disabled for the project' do - before do - stub_feature_flags(project_daily_statistics: { thing: subject, enabled: false }) - end - - it { is_expected.not_to be_daily_statistics_enabled } - end - end - describe '#change_head' do let(:project) { create(:project, :repository) } |