summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/alerting/alert_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-29 15:07:54 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-29 15:07:54 +0000
commitd0e26aa964d15e1499c60034420b6022c5f91af9 (patch)
treee3b475265b02f0721bb1af1bbb2939c6ae81a76e /spec/lib/gitlab/alerting/alert_spec.rb
parent06466a128a06ae520ba7c8163d86407e8cdeefc5 (diff)
downloadgitlab-ce-d0e26aa964d15e1499c60034420b6022c5f91af9.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/gitlab/alerting/alert_spec.rb')
-rw-r--r--spec/lib/gitlab/alerting/alert_spec.rb4
1 files changed, 1 insertions, 3 deletions
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