diff options
Diffstat (limited to 'spec/features/projects/user_archives_project_spec.rb')
-rw-r--r-- | spec/features/projects/user_archives_project_spec.rb | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/spec/features/projects/user_archives_project_spec.rb b/spec/features/projects/user_archives_project_spec.rb deleted file mode 100644 index 72063d13c2a..00000000000 --- a/spec/features/projects/user_archives_project_spec.rb +++ /dev/null @@ -1,43 +0,0 @@ -require 'spec_helper' - -describe 'User archives a project' do - let(:user) { create(:user) } - - before do - project.add_master(user) - - sign_in(user) - end - - context 'when a project is archived' do - let(:project) { create(:project, :archived, namespace: user.namespace) } - - before do - visit(edit_project_path(project)) - end - - it 'unarchives a project' do - expect(page).to have_content('Unarchive project') - - click_link('Unarchive') - - expect(page).not_to have_content('Archived project') - end - end - - context 'when a project is unarchived' do - let(:project) { create(:project, :repository, namespace: user.namespace) } - - before do - visit(edit_project_path(project)) - end - - it 'archives a project' do - expect(page).to have_content('Archive project') - - click_link('Archive') - - expect(page).to have_content('Archived') - end - end -end |