summaryrefslogtreecommitdiff
path: root/spec/frontend/fixtures/autocomplete_sources.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/fixtures/autocomplete_sources.rb')
-rw-r--r--spec/frontend/fixtures/autocomplete_sources.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/frontend/fixtures/autocomplete_sources.rb b/spec/frontend/fixtures/autocomplete_sources.rb
index 8858d69a939..9ff0f959c11 100644
--- a/spec/frontend/fixtures/autocomplete_sources.rb
+++ b/spec/frontend/fixtures/autocomplete_sources.rb
@@ -5,7 +5,7 @@ require 'spec_helper'
RSpec.describe Projects::AutocompleteSourcesController, '(JavaScript fixtures)', type: :controller do
include JavaScriptFixturesHelpers
- let_it_be(:admin) { create(:admin) }
+ let_it_be(:user) { create(:user) }
let_it_be(:group) { create(:group, name: 'frontend-fixtures') }
let_it_be(:project) { create(:project, namespace: group, path: 'autocomplete-sources-project') }
let_it_be(:issue) { create(:issue, project: project) }
@@ -15,7 +15,8 @@ RSpec.describe Projects::AutocompleteSourcesController, '(JavaScript fixtures)',
end
before do
- sign_in(admin)
+ group.add_owner(user)
+ sign_in(user)
end
it 'autocomplete_sources/labels.json' do