Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-29 18:07:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-29 18:07:54 +0300
commitd0e26aa964d15e1499c60034420b6022c5f91af9 (patch)
treee3b475265b02f0721bb1af1bbb2939c6ae81a76e /spec/lib
parent06466a128a06ae520ba7c8163d86407e8cdeefc5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib')
-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