diff options
author | Nick Thomas <nick@gitlab.com> | 2018-12-13 20:52:38 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-12-15 16:50:59 +0300 |
commit | e8a675d35f02c6bca9d0e3c8cc116ccd240fa4f6 (patch) | |
tree | cabfec3659295e1cf66b50dfab4e1637c8a1a00b /spec/features | |
parent | 0b74b863679a8f55642973eddf25f9e58183d984 (diff) |
Remove the project_cleanup feature flag
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/settings/repository_settings_spec.rb | 32 |
1 files changed, 9 insertions, 23 deletions
diff --git a/spec/features/projects/settings/repository_settings_spec.rb b/spec/features/projects/settings/repository_settings_spec.rb index 418e22f8c35..1982136b89d 100644 --- a/spec/features/projects/settings/repository_settings_spec.rb +++ b/spec/features/projects/settings/repository_settings_spec.rb @@ -200,35 +200,21 @@ describe 'Projects > Settings > Repository settings' do context 'repository cleanup settings' do let(:object_map_file) { Rails.root.join('spec', 'fixtures', 'bfg_object_map.txt') } - context 'feature enabled' do - it 'uploads an object map file', :js do - stub_feature_flags(project_cleanup: true) - - visit project_settings_repository_path(project) + it 'uploads an object map file', :js do + visit project_settings_repository_path(project) - expect(page).to have_content('Repository cleanup') + expect(page).to have_content('Repository cleanup') - page.within('#cleanup') do - attach_file('project[bfg_object_map]', object_map_file, visible: false) + page.within('#cleanup') do + attach_file('project[bfg_object_map]', object_map_file, visible: false) - Sidekiq::Testing.fake! do - click_button 'Start cleanup' - end + Sidekiq::Testing.fake! do + click_button 'Start cleanup' end - - expect(page).to have_content('Repository cleanup has started') - expect(RepositoryCleanupWorker.jobs.count).to eq(1) end - end - context 'feature disabled' do - it 'does not show the settings' do - stub_feature_flags(project_cleanup: false) - - visit project_settings_repository_path(project) - - expect(page).not_to have_content('Repository cleanup') - end + expect(page).to have_content('Repository cleanup has started') + expect(RepositoryCleanupWorker.jobs.count).to eq(1) end end end |