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
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-12-04 13:24:21 +0300
committerShinya Maeda <shinya@gitlab.com>2018-12-04 13:24:21 +0300
commite1449df7a2eccbdaeb807d60a1c67b249d6ec03e (patch)
treebdf46ae564f55fd0946d2520c005c18e8e83738e /spec/models/prometheus_metric_spec.rb
parent5b24739eb30b6505ef652b526c7502bd961c5bc2 (diff)
Fix coding offence
Diffstat (limited to 'spec/models/prometheus_metric_spec.rb')
-rw-r--r--spec/models/prometheus_metric_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/prometheus_metric_spec.rb b/spec/models/prometheus_metric_spec.rb
index 1737c498359..3692fe9a559 100644
--- a/spec/models/prometheus_metric_spec.rb
+++ b/spec/models/prometheus_metric_spec.rb
@@ -3,11 +3,11 @@
require 'spec_helper'
describe PrometheusMetric do
- it_behaves_like 'having unique enum values'
-
subject { build(:prometheus_metric) }
let(:other_project) { build(:project) }
+ it_behaves_like 'having unique enum values'
+
it { is_expected.to belong_to(:project) }
it { is_expected.to validate_presence_of(:title) }
it { is_expected.to validate_presence_of(:query) }