Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-12-19 21:36:53 +0300
committerNick Thomas <nick@gitlab.com>2017-12-19 21:39:35 +0300
commitf8b9a45854a1ce6841ff8d2057856a9424e562ed (patch)
tree95f1d5b9684eb2c0cd7b31b98a11614b679780b7 /spec/features/tags
parent8b13bdbe4d5805727c2c165f8cf0c7593c4af92d (diff)
Prevent some specs from mangling the gitlab-shell checkout
Diffstat (limited to 'spec/features/tags')
-rw-r--r--spec/features/tags/master_views_tags_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/features/tags/master_views_tags_spec.rb b/spec/features/tags/master_views_tags_spec.rb
index 9edc7ced163..4662367d843 100644
--- a/spec/features/tags/master_views_tags_spec.rb
+++ b/spec/features/tags/master_views_tags_spec.rb
@@ -4,18 +4,17 @@ feature 'Master views tags' do
let(:user) { create(:user) }
before do
- project.team << [user, :master]
+ project.add_master(user)
sign_in(user)
end
context 'when project has no tags' do
let(:project) { create(:project_empty_repo) }
+
before do
visit project_path(project)
click_on 'README'
fill_in :commit_message, with: 'Add a README 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'
visit project_tags_path(project)
end