summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-11-18 22:31:26 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-11-18 22:31:26 +0100
commitb1f5af40598528fbc1326946376a595d41793537 (patch)
treefc85fbac4690272de2e6bf5520ba0067dad6a22a /spec
parent43898f8efbe4981ad2ca67e7804db2c73fe2f3e2 (diff)
downloadgitlab-ce-b1f5af40598528fbc1326946376a595d41793537.tar.gz
Bring back the `commit_url` as it's used by CycleAnalytics
Diffstat (limited to 'spec')
-rw-r--r--spec/serializers/commit_entity_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/serializers/commit_entity_spec.rb b/spec/serializers/commit_entity_spec.rb
index a44a23ef619..15f11ac3df9 100644
--- a/spec/serializers/commit_entity_spec.rb
+++ b/spec/serializers/commit_entity_spec.rb
@@ -35,6 +35,10 @@ describe CommitEntity do
expect(subject).to include(:commit_path)
end
+ it 'contains URL to commit' do
+ expect(subject).to include(:commit_url)
+ end
+
it 'needs to receive project in the request' do
expect(request).to receive(:project)
.and_return(project)