diff options
author | Nick Thomas <nick@gitlab.com> | 2017-12-19 18:36:53 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-12-19 18:39:35 +0000 |
commit | f8b9a45854a1ce6841ff8d2057856a9424e562ed (patch) | |
tree | 95f1d5b9684eb2c0cd7b31b98a11614b679780b7 /spec/features/tags/master_views_tags_spec.rb | |
parent | 8b13bdbe4d5805727c2c165f8cf0c7593c4af92d (diff) | |
download | gitlab-ce-f8b9a45854a1ce6841ff8d2057856a9424e562ed.tar.gz |
Prevent some specs from mangling the gitlab-shell checkout
Diffstat (limited to 'spec/features/tags/master_views_tags_spec.rb')
-rw-r--r-- | spec/features/tags/master_views_tags_spec.rb | 5 |
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 |