summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-11-02 14:14:38 +0200
committerValery Sizov <valery@gitlab.com>2015-11-02 17:07:06 +0200
commit1b8d324762787805fabee72d585ac40e244af4d7 (patch)
tree2c569dede8e82518ed25baa8b420324a87d055f8 /spec
parent8f75200d466d41707f3b1ca12ca4244cfa2e2e7b (diff)
downloadgitlab-ce-1b8d324762787805fabee72d585ac40e244af4d7.tar.gz
Add ability to fetch the commit ID of the last commit that actually touched a fileapi_file_touched_at
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/api/files_spec.rb1
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