From 2d54dfb25134cbdf5b4f506b69d13241130bc132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Coutable?= Date: Fri, 6 Apr 2018 14:40:33 +0200 Subject: Migrate features/project/project.feature to RSpec and reorganize several Project feature specs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Coutable --- .../projects/user_archives_project_spec.rb | 43 ---------------------- 1 file changed, 43 deletions(-) delete mode 100644 spec/features/projects/user_archives_project_spec.rb (limited to 'spec/features/projects/user_archives_project_spec.rb') 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 -- cgit v1.2.1