diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2017-12-21 22:15:50 +0100 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2017-12-24 12:14:17 +0100 |
commit | 6185ce0c84b5674abf4f54576fec44fece571565 (patch) | |
tree | 2c2a3bf90a4beb10628477bc22b37c9c7d056202 /spec/serializers | |
parent | 2972352a9c6912adfd77b480472eb13b832a6c3b (diff) | |
download | gitlab-ce-6185ce0c84b5674abf4f54576fec44fece571565.tar.gz |
Rendering of emoji's in Group-Overview
Allows rendering of emoji's in the Group Overview.
Diffstat (limited to 'spec/serializers')
-rw-r--r-- | spec/serializers/group_child_entity_spec.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/serializers/group_child_entity_spec.rb b/spec/serializers/group_child_entity_spec.rb index 452754d7a79..505a9eaac5a 100644 --- a/spec/serializers/group_child_entity_spec.rb +++ b/spec/serializers/group_child_entity_spec.rb @@ -22,6 +22,7 @@ describe GroupChildEntity do avatar_url name description + markdown_description visibility type can_edit @@ -60,9 +61,10 @@ describe GroupChildEntity do end describe 'for a group', :nested_groups do + let(:description) { 'Awesomeness' } let(:object) do create(:group, :nested, :with_avatar, - description: 'Awesomeness') + description: description) end before do @@ -96,6 +98,14 @@ describe GroupChildEntity do expect(json[:edit_path]).to eq(edit_group_path(object)) end + context 'emoji in description' do + let(:description) { ':smile:' } + + it 'has the correct markdown_description' do + expect(json[:markdown_description]).to eq('<p dir="auto"><gl-emoji title="smiling face with open mouth and smiling eyes" data-name="smile" data-unicode-version="6.0">😄</gl-emoji></p>') + end + end + it_behaves_like 'group child json' end end |