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/deploy_keys.rb
parent5b6e9de025786e5f46443d408f1eeadb8e8b4f7b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/fixtures/deploy_keys.rb')
-rw-r--r--spec/frontend/fixtures/deploy_keys.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/frontend/fixtures/deploy_keys.rb b/spec/frontend/fixtures/deploy_keys.rb
index e87600e9d24..5c24c071792 100644
--- a/spec/frontend/fixtures/deploy_keys.rb
+++ b/spec/frontend/fixtures/deploy_keys.rb
@@ -4,6 +4,7 @@ require 'spec_helper'
RSpec.describe Projects::DeployKeysController, '(JavaScript fixtures)', type: :controller do
include JavaScriptFixturesHelpers
+ include AdminModeHelper
let(:admin) { create(:admin) }
let(:namespace) { create(:namespace, name: 'frontend-fixtures' )}
@@ -17,7 +18,10 @@ RSpec.describe Projects::DeployKeysController, '(JavaScript fixtures)', type: :c
end
before do
+ # Using an admin for these fixtures because they are used for verifying a frontend
+ # component that would normally get its data from `Admin::DeployKeysController`
sign_in(admin)
+ enable_admin_mode!(admin)
end
after do