diff options
author | Nick Thomas <nick@gitlab.com> | 2017-12-19 21:36:53 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-12-19 21:39:35 +0300 |
commit | f8b9a45854a1ce6841ff8d2057856a9424e562ed (patch) | |
tree | 95f1d5b9684eb2c0cd7b31b98a11614b679780b7 /spec/features/projects/files | |
parent | 8b13bdbe4d5805727c2c165f8cf0c7593c4af92d (diff) |
Prevent some specs from mangling the gitlab-shell checkout
Diffstat (limited to 'spec/features/projects/files')
-rw-r--r-- | spec/features/projects/files/project_owner_sees_link_to_create_license_file_in_empty_project_spec.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/features/projects/files/project_owner_sees_link_to_create_license_file_in_empty_project_spec.rb b/spec/features/projects/files/project_owner_sees_link_to_create_license_file_in_empty_project_spec.rb index 6c616bf0456..8ac9821b879 100644 --- a/spec/features/projects/files/project_owner_sees_link_to_create_license_file_in_empty_project_spec.rb +++ b/spec/features/projects/files/project_owner_sees_link_to_create_license_file_in_empty_project_spec.rb @@ -2,15 +2,15 @@ require 'spec_helper' feature 'project owner sees a link to create a license file in empty project', :js do let(:project_master) { create(:user) } - let(:project) { create(:project) } + let(:project) { create(:project_empty_repo) } + background do - project.team << [project_master, :master] + project.add_master(project_master) sign_in(project_master) end scenario 'project master creates a license file from a template' do visit project_path(project) - click_link 'Create empty bare repository' click_on 'LICENSE' expect(page).to have_content('New file') @@ -26,8 +26,6 @@ feature 'project owner sees a link to create a license file in empty project', : expect(file_content).to have_content("Copyright (c) #{Time.now.year} #{project.namespace.human_name}") fill_in :commit_message, with: 'Add a LICENSE file', visible: true - # Remove pre-receive hook so we can push without auth - FileUtils.rm_f(File.join(project.repository.path, 'hooks', 'pre-receive')) click_button 'Commit changes' expect(current_path).to eq( |