From d0e26aa964d15e1499c60034420b6022c5f91af9 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Sun, 29 Mar 2020 15:07:54 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/lib/gitlab/alerting/alert_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'spec') diff --git a/spec/lib/gitlab/alerting/alert_spec.rb b/spec/lib/gitlab/alerting/alert_spec.rb index 790edbc9c60..aaded28954e 100644 --- a/spec/lib/gitlab/alerting/alert_spec.rb +++ b/spec/lib/gitlab/alerting/alert_spec.rb @@ -211,9 +211,7 @@ describe Gitlab::Alerting::Alert do it { is_expected.to be_valid } context 'without project' do - # Redefine to prevent: - # project is a NilClass - rspec-set works with ActiveRecord models only - let(:alert) { build(:alerting_alert, project: nil, payload: payload) } + let(:project) { nil } it { is_expected.not_to be_valid } end -- cgit v1.2.1