summaryrefslogtreecommitdiff
path: root/spec/serializers
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-12 10:53:03 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-12 10:53:03 +0100
commit0541bffa85cde86d4ce142b6fe2d3e1357b1acc5 (patch)
tree16984b3b980a3879feef66d08c47beba9cfd81c0 /spec/serializers
parent6186ac2c3d0db6932993ac681cbed6f453499503 (diff)
downloadgitlab-ce-0541bffa85cde86d4ce142b6fe2d3e1357b1acc5.tar.gz
Expose commit author's gravatar if not gitlab user
Diffstat (limited to 'spec/serializers')
-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 628e35c9a28..5b2a6c6c294 100644
--- a/spec/serializers/commit_entity_spec.rb
+++ b/spec/serializers/commit_entity_spec.rb
@@ -41,4 +41,8 @@ describe CommitEntity do
subject
end
+
+ it 'exposes gravatar url that belongs to author' do
+ expect(subject.fetch(:author_gravatar_url)).to match /gravatar/
+ end
end