diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-29 15:07:54 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-29 15:07:54 +0000 |
commit | d0e26aa964d15e1499c60034420b6022c5f91af9 (patch) | |
tree | e3b475265b02f0721bb1af1bbb2939c6ae81a76e /spec | |
parent | 06466a128a06ae520ba7c8163d86407e8cdeefc5 (diff) | |
download | gitlab-ce-d0e26aa964d15e1499c60034420b6022c5f91af9.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/alerting/alert_spec.rb | 4 |
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 |