diff options
author | Rémy Coutable <remy@rymai.me> | 2018-05-24 10:57:54 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-05-24 11:14:01 +0300 |
commit | d50a80a282b2ca145841774f4be154a977cccfd8 (patch) | |
tree | b8b44017967ecb99196ec5cfcf4b827af0af1b8a /spec/requests/api/version_spec.rb | |
parent | c52db71e36ee70c4c5be80b029cf4362f28e3667 (diff) |
Replace Gitlab::REVISION with Gitlab.revision and handle installations without a .git directory
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/requests/api/version_spec.rb')
-rw-r--r-- | spec/requests/api/version_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/api/version_spec.rb b/spec/requests/api/version_spec.rb index 7bbf34422b8..38b618191fb 100644 --- a/spec/requests/api/version_spec.rb +++ b/spec/requests/api/version_spec.rb @@ -18,7 +18,7 @@ describe API::Version do expect(response).to have_gitlab_http_status(200) expect(json_response['version']).to eq(Gitlab::VERSION) - expect(json_response['revision']).to eq(Gitlab::REVISION) + expect(json_response['revision']).to eq(Gitlab.revision) end end end |