summaryrefslogtreecommitdiff
path: root/spec/features/admin/admin_health_check_spec.rb
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-08-03 12:16:45 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2017-08-04 15:38:49 +0200
commit3899d07f9eb5ffa2369195c800be18e297f67613 (patch)
tree5a8e252d127878f4057ec884f3407874b86645d4 /spec/features/admin/admin_health_check_spec.rb
parent0fa94a0dddfc38635abf49a38dbadc9b9ead4d7a (diff)
downloadgitlab-ce-3899d07f9eb5ffa2369195c800be18e297f67613.tar.gz
Move hostname to Gitlab::Environment
Diffstat (limited to 'spec/features/admin/admin_health_check_spec.rb')
-rw-r--r--spec/features/admin/admin_health_check_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/admin/admin_health_check_spec.rb b/spec/features/admin/admin_health_check_spec.rb
index 634dfd53f71..37fd3e171eb 100644
--- a/spec/features/admin/admin_health_check_spec.rb
+++ b/spec/features/admin/admin_health_check_spec.rb
@@ -64,7 +64,7 @@ feature "Admin Health Check", feature: true, broken_storage: true do
end
it 'shows storage failure information' do
- hostname = Gitlab.config.gitlab.hostname
+ hostname = Gitlab::Environment.hostname
expect(page).to have_content('broken: failed storage access attempt on host:')
expect(page).to have_content("#{hostname}: 1 of 10 failures.")