Commit 15cbdd3e authored by Vitali Tatarintev's avatar Vitali Tatarintev

Change set to let_it_be in ee/spec/policies

parent 33d74819
...@@ -35,7 +35,7 @@ describe Ci::BuildPolicy do ...@@ -35,7 +35,7 @@ describe Ci::BuildPolicy do
describe 'manage a web ide terminal' do describe 'manage a web ide terminal' do
let(:build_permissions) { %i[read_web_ide_terminal create_build_terminal update_web_ide_terminal create_build_service_proxy] } let(:build_permissions) { %i[read_web_ide_terminal create_build_terminal update_web_ide_terminal create_build_service_proxy] }
set(:maintainer) { create(:user) } let_it_be(:maintainer) { create(:user) }
let(:owner) { create(:owner) } let(:owner) { create(:owner) }
let(:admin) { create(:admin) } let(:admin) { create(:admin) }
let(:maintainer) { create(:user) } let(:maintainer) { create(:user) }
......
...@@ -5,12 +5,12 @@ require 'spec_helper' ...@@ -5,12 +5,12 @@ require 'spec_helper'
describe ProjectPolicy do describe ProjectPolicy do
include ExternalAuthorizationServiceHelpers include ExternalAuthorizationServiceHelpers
set(:owner) { create(:user) } let_it_be(:owner) { create(:user) }
set(:admin) { create(:admin) } let_it_be(:admin) { create(:admin) }
set(:maintainer) { create(:user) } let_it_be(:maintainer) { create(:user) }
set(:developer) { create(:user) } let_it_be(:developer) { create(:user) }
set(:reporter) { create(:user) } let_it_be(:reporter) { create(:user) }
set(:guest) { create(:user) } let_it_be(:guest) { create(:user) }
let(:project) { create(:project, :public, namespace: owner.namespace) } let(:project) { create(:project, :public, namespace: owner.namespace) }
subject { described_class.new(current_user, project) } subject { described_class.new(current_user, project) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment