summaryrefslogtreecommitdiff
path: root/spec/models/prometheus_alert_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/prometheus_alert_spec.rb')
-rw-r--r--spec/models/prometheus_alert_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/models/prometheus_alert_spec.rb b/spec/models/prometheus_alert_spec.rb
index 1409cf65fee..7169a34d96f 100644
--- a/spec/models/prometheus_alert_spec.rb
+++ b/spec/models/prometheus_alert_spec.rb
@@ -2,7 +2,7 @@
require 'spec_helper'
-describe PrometheusAlert do
+RSpec.describe PrometheusAlert do
let_it_be(:project) { build(:project) }
let(:metric) { build(:prometheus_metric) }
@@ -33,6 +33,10 @@ describe PrometheusAlert do
describe 'associations' do
it { is_expected.to belong_to(:project) }
it { is_expected.to belong_to(:environment) }
+ it { is_expected.to belong_to(:prometheus_metric) }
+ it { is_expected.to have_many(:prometheus_alert_events) }
+ it { is_expected.to have_many(:related_issues) }
+ it { is_expected.to have_many(:alert_management_alerts) }
end
describe 'project validations' do