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:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-06-02 16:25:54 +0300
committerPawel Chojnacki <pawel@chojnacki.ws>2017-06-02 20:46:29 +0300
commit6a67148ed3543ee5073ab49dc4e825f3d87cc8b5 (patch)
treecacf11c4f156dbcf0cc4536ef68be8943b80455f /spec/lib/gitlab/health_checks
parentc86e1437eb415e816dcc29f0b1acafeed2dcc266 (diff)
Make production settings fixture use Gitlab::CurrentSettings.current_application_settings
small code formatting changes
Diffstat (limited to 'spec/lib/gitlab/health_checks')
-rw-r--r--spec/lib/gitlab/health_checks/prometheus_text_format_spec.rb14
1 files changed, 5 insertions, 9 deletions
diff --git a/spec/lib/gitlab/health_checks/prometheus_text_format_spec.rb b/spec/lib/gitlab/health_checks/prometheus_text_format_spec.rb
index b07f95443ee..7573792789a 100644
--- a/spec/lib/gitlab/health_checks/prometheus_text_format_spec.rb
+++ b/spec/lib/gitlab/health_checks/prometheus_text_format_spec.rb
@@ -4,10 +4,8 @@ describe Gitlab::HealthChecks::PrometheusTextFormat do
describe '#marshal' do
let(:sample_metrics) do
- [
- metric_class.new('metric1', 1),
- metric_class.new('metric2', 2)
- ]
+ [metric_class.new('metric1', 1),
+ metric_class.new('metric2', 2)]
end
it 'marshal to text with non repeating type definition' do
@@ -23,11 +21,9 @@ describe Gitlab::HealthChecks::PrometheusTextFormat do
context 'metrics where name repeats' do
let(:sample_metrics) do
- [
- metric_class.new('metric1', 1),
- metric_class.new('metric1', 2),
- metric_class.new('metric2', 3)
- ]
+ [metric_class.new('metric1', 1),
+ metric_class.new('metric1', 2),
+ metric_class.new('metric2', 3)]
end
it 'marshal to text with non repeating type definition' do