Commit 48a551e8 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix nitpicks

parent 7d8814a2
...@@ -28,6 +28,6 @@ class MockDeploymentService < DeploymentService ...@@ -28,6 +28,6 @@ class MockDeploymentService < DeploymentService
private private
def rollout_status_instances def rollout_status_instances
JSON.parse(File.read(Rails.root + 'spec/fixtures/rollout_status_instances.json')) JSON.parse(Rails.root.join('spec', 'fixtures', 'rollout_status_instances.json'))
end end
end end
...@@ -12,6 +12,6 @@ class MockMonitoringService < MonitoringService ...@@ -12,6 +12,6 @@ class MockMonitoringService < MonitoringService
end end
def metrics(environment) def metrics(environment)
JSON.parse(File.read(Rails.root + 'spec/fixtures/metrics.json')) JSON.parse(Rails.root.join('spec', 'fixtures', 'metrics.json'))
end end
end end
...@@ -14,7 +14,7 @@ module Gitlab ...@@ -14,7 +14,7 @@ module Gitlab
end end
def track def track
labels.fetch('track', nil) || 'stable' labels.fetch('track', 'stable')
end end
def stable? def stable?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment