Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-01-13 19:53:52 +0300
committerRémy Coutable <remy@rymai.me>2017-01-13 19:53:52 +0300
commit6f4f99f402800a33dad9d4aea72e3a319791dda2 (patch)
tree019dc7967efa674d0925b19743d514147e57e6dc /spec
parenta3fcc681d43dbecaef01701598b0fbeeffb9b063 (diff)
parentc47e1f97fdc1328461e965471f5aab100e337285 (diff)
Merge branch 'fix/serialized-commit-path' into 'master'
Update commit entity to point to valid commit page Closes #26624 See merge request !8558
Diffstat (limited to 'spec')
-rw-r--r--spec/serializers/commit_entity_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/serializers/commit_entity_spec.rb b/spec/serializers/commit_entity_spec.rb
index a8662e81d20..0333d73b5b5 100644
--- a/spec/serializers/commit_entity_spec.rb
+++ b/spec/serializers/commit_entity_spec.rb
@@ -33,10 +33,12 @@ describe CommitEntity do
it 'contains path to commit' do
expect(subject).to include(:commit_path)
+ expect(subject[:commit_path]).to include "commit/#{commit.id}"
end
it 'contains URL to commit' do
expect(subject).to include(:commit_url)
+ expect(subject[:commit_path]).to include "commit/#{commit.id}"
end
it 'needs to receive project in the request' do