diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-11-02 15:14:38 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-11-02 18:07:06 +0300 |
commit | 1b8d324762787805fabee72d585ac40e244af4d7 (patch) | |
tree | 2c569dede8e82518ed25baa8b420324a87d055f8 /spec/requests/api/files_spec.rb | |
parent | 8f75200d466d41707f3b1ca12ca4244cfa2e2e7b (diff) |
Add ability to fetch the commit ID of the last commit that actually touched a file
Diffstat (limited to 'spec/requests/api/files_spec.rb')
-rw-r--r-- | spec/requests/api/files_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/requests/api/files_spec.rb b/spec/requests/api/files_spec.rb index 042e6352567..8efa09f75fd 100644 --- a/spec/requests/api/files_spec.rb +++ b/spec/requests/api/files_spec.rb @@ -19,6 +19,7 @@ describe API::API, api: true do expect(response.status).to eq(200) expect(json_response['file_path']).to eq(file_path) expect(json_response['file_name']).to eq('popen.rb') + expect(json_response['last_commit_id']).to eq('570e7b2abdd848b95f2f578043fc23bd6f6fd24d') expect(Base64.decode64(json_response['content']).lines.first).to eq("require 'fileutils'\n") end |