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