From dd4a8df4cb5da30bf918725143f3e038a6fa7a79 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Mon, 3 Dec 2018 20:10:13 +0900 Subject: Validate enum uniqueness --- spec/models/prometheus_metric_spec.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec/models/prometheus_metric_spec.rb') diff --git a/spec/models/prometheus_metric_spec.rb b/spec/models/prometheus_metric_spec.rb index a83a31ae88c..f1c209d8c3f 100644 --- a/spec/models/prometheus_metric_spec.rb +++ b/spec/models/prometheus_metric_spec.rb @@ -11,6 +11,8 @@ describe PrometheusMetric do it { is_expected.to validate_presence_of(:query) } it { is_expected.to validate_presence_of(:group) } + it_behaves_like 'Unique enum values' + describe 'common metrics' do using RSpec::Parameterized::TableSyntax -- cgit v1.2.1