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

Fix nitpicks

parent 7d8814a2
......@@ -28,6 +28,6 @@ class MockDeploymentService < DeploymentService
private
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
......@@ -12,6 +12,6 @@ class MockMonitoringService < MonitoringService
end
def metrics(environment)
JSON.parse(File.read(Rails.root + 'spec/fixtures/metrics.json'))
JSON.parse(Rails.root.join('spec', 'fixtures', 'metrics.json'))
end
end
......@@ -14,7 +14,7 @@ module Gitlab
end
def track
labels.fetch('track', nil) || 'stable'
labels.fetch('track', 'stable')
end
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