diff options
author | Rémy Coutable <remy@rymai.me> | 2017-01-13 19:53:52 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-01-13 19:53:52 +0300 |
commit | 6f4f99f402800a33dad9d4aea72e3a319791dda2 (patch) | |
tree | 019dc7967efa674d0925b19743d514147e57e6dc /spec | |
parent | a3fcc681d43dbecaef01701598b0fbeeffb9b063 (diff) | |
parent | c47e1f97fdc1328461e965471f5aab100e337285 (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.rb | 2 |
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 |