diff options
Diffstat (limited to 'spec/frontend/fixtures/labels.rb')
-rw-r--r-- | spec/frontend/fixtures/labels.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/frontend/fixtures/labels.rb b/spec/frontend/fixtures/labels.rb index 5623fd16f7b..d7ca2aff18c 100644 --- a/spec/frontend/fixtures/labels.rb +++ b/spec/frontend/fixtures/labels.rb @@ -5,7 +5,7 @@ require 'spec_helper' RSpec.describe 'Labels (JavaScript fixtures)' do include JavaScriptFixturesHelpers - let(:admin) { create(:admin) } + let(:user) { create(:user) } let(:group) { create(:group, name: 'frontend-fixtures-group' )} let(:project) { create(:project_empty_repo, namespace: group, path: 'labels-project') } @@ -29,8 +29,6 @@ RSpec.describe 'Labels (JavaScript fixtures)' do include JavaScriptFixturesHelpers include ApiHelpers - let(:user) { create(:user) } - before do group.add_owner(user) end @@ -46,7 +44,8 @@ RSpec.describe 'Labels (JavaScript fixtures)' do render_views before do - sign_in(admin) + group.add_owner(user) + sign_in(user) end it 'labels/project_labels.json' do |