diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-01-13 13:07:32 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-01-13 13:07:32 +0100 |
commit | 1f546e4d724d77db0a384fb36e17243bf75381f5 (patch) | |
tree | 9851f4f5b73d72a4747c2d5ea0602441b3aadd56 /spec/serializers | |
parent | 4b43126d08972c201551fbd1fe42e85847d5e03f (diff) | |
download | gitlab-ce-1f546e4d724d77db0a384fb36e17243bf75381f5.tar.gz |
Update commit entity to point to valid commit page
Diffstat (limited to 'spec/serializers')
-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 |