summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/health_checks
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-06-02 15:55:44 +0200
committerPawel Chojnacki <pawel@chojnacki.ws>2017-06-02 19:48:39 +0200
commitd26573c6e3de535f69437deaf54d5c151ac343c8 (patch)
tree7a136066f4c5b9ac54593e2445a89d78651a236b /spec/lib/gitlab/health_checks
parent6a67148ed3543ee5073ab49dc4e825f3d87cc8b5 (diff)
downloadgitlab-ce-d26573c6e3de535f69437deaf54d5c151ac343c8.tar.gz
Make PrometheusTextFormat return proper output terminated with '\n'
remove file dangling after rebase
Diffstat (limited to 'spec/lib/gitlab/health_checks')
-rw-r--r--spec/lib/gitlab/health_checks/prometheus_text_format_spec.rb4
1 files changed, 2 insertions, 2 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 7573792789a..ed757ed60d8 100644
--- a/spec/lib/gitlab/health_checks/prometheus_text_format_spec.rb
+++ b/spec/lib/gitlab/health_checks/prometheus_text_format_spec.rb
@@ -16,7 +16,7 @@ describe Gitlab::HealthChecks::PrometheusTextFormat do
metric2 2
EXPECTED
- expect(subject.marshal(sample_metrics)).to eq(expected.chomp)
+ expect(subject.marshal(sample_metrics)).to eq(expected)
end
context 'metrics where name repeats' do
@@ -34,7 +34,7 @@ describe Gitlab::HealthChecks::PrometheusTextFormat do
# TYPE metric2 gauge
metric2 3
EXPECTED
- expect(subject.marshal(sample_metrics)).to eq(expected.chomp)
+ expect(subject.marshal(sample_metrics)).to eq(expected)
end
end
end