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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-07 15:10:00 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-07 15:10:00 +0300
commit100b1a03e603487ff1966f513ba1a177a8adaefd (patch)
treefb9ffa9c0e2351d822dce1d122275c72cdc46805 /spec/frontend/fixtures/branches.rb
parent5b6e9de025786e5f46443d408f1eeadb8e8b4f7b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/fixtures/branches.rb')
-rw-r--r--spec/frontend/fixtures/branches.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/fixtures/branches.rb b/spec/frontend/fixtures/branches.rb
index df2d1af7ecf..f3b3633347d 100644
--- a/spec/frontend/fixtures/branches.rb
+++ b/spec/frontend/fixtures/branches.rb
@@ -5,9 +5,9 @@ require 'spec_helper'
RSpec.describe 'Branches (JavaScript fixtures)' do
include JavaScriptFixturesHelpers
- let_it_be(:admin) { create(:admin) }
let_it_be(:namespace) { create(:namespace, name: 'frontend-fixtures' )}
let_it_be(:project) { create(:project, :repository, namespace: namespace, path: 'branches-project') }
+ let_it_be(:user) { project.owner }
before(:all) do
clean_frontend_fixtures('branches/')
@@ -22,7 +22,7 @@ RSpec.describe 'Branches (JavaScript fixtures)' do
render_views
before do
- sign_in(admin)
+ sign_in(user)
end
it 'branches/new_branch.html' do
@@ -44,7 +44,7 @@ RSpec.describe 'Branches (JavaScript fixtures)' do
# - "master": default, protected
# - "markdown": non-default, protected
# - "many_files": non-default, not protected
- get api("/projects/#{project.id}/repository/branches?search=ma", admin)
+ get api("/projects/#{project.id}/repository/branches?search=ma", user)
expect(response).to be_successful
end