Commit c0e01aab authored by Vitali Tatarintev's avatar Vitali Tatarintev

Change set to let_it_be in ee/spec/presenters

Contributes to https://gitlab.com/gitlab-org/gitlab/issues/27922
parent 15cbdd3e
......@@ -3,17 +3,17 @@
require 'spec_helper'
describe ApprovalRulePresenter do
set(:user) { create(:user) }
set(:public_group) { create(:group) }
set(:private_group) { create(:group, :private) }
let_it_be(:user) { create(:user) }
let_it_be(:public_group) { create(:group) }
let_it_be(:private_group) { create(:group, :private) }
let(:groups) { [public_group, private_group] }
subject(:presenter) { described_class.new(rule, current_user: user) }
describe '#approvers' do
set(:private_member) { create(:group_member, group: private_group) }
set(:public_member) { create(:group_member, group: public_group) }
set(:rule) { create(:approval_merge_request_rule, groups: [public_group, private_group]) }
let_it_be(:private_member) { create(:group_member, group: private_group) }
let_it_be(:public_member) { create(:group_member, group: public_group) }
let_it_be(:rule) { create(:approval_merge_request_rule, groups: [public_group, private_group]) }
subject { presenter.approvers }
......
......@@ -3,8 +3,8 @@
require 'spec_helper'
describe Ci::PipelinePresenter do
set(:project) { create(:project) }
set(:pipeline) { create(:ci_pipeline, project: project) }
let_it_be(:project, reload: true) { create(:project) }
let_it_be(:pipeline, reload: true) { create(:ci_pipeline, project: project) }
subject(:presenter) do
described_class.new(pipeline)
......
......@@ -5,7 +5,7 @@ require 'spec_helper'
describe GroupClusterablePresenter do
include Gitlab::Routing.url_helpers
set(:user) { create(:user) }
let_it_be(:user) { create(:user) }
let(:presenter) { described_class.new(group) }
let(:cluster) { create(:cluster, :provided_by_gcp, :group) }
......
......@@ -3,7 +3,7 @@
require 'spec_helper'
describe Projects::Prometheus::AlertPresenter do
set(:project) { create(:project) }
let_it_be(:project) { create(:project) }
let(:presenter) { described_class.new(alert) }
let(:payload) { {} }
......
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