diff options
author | Fabian Schneider <fabbbbbi+git@googlemail.com> | 2018-03-11 20:56:07 +0100 |
---|---|---|
committer | Fabian Schneider <fabbbbbi+git@googlemail.com> | 2018-03-22 19:01:43 +0100 |
commit | 839589fde30cff9ecf963dab775bfd9b9b2fe17b (patch) | |
tree | 6703c6e959d00a039aff6d8b35c0e58ec403bf12 /spec/models/group_spec.rb | |
parent | afd2d381119c3778140c3dd63c7ef24ecdb4c62e (diff) | |
download | gitlab-ce-839589fde30cff9ecf963dab775bfd9b9b2fe17b.tar.gz |
Change avatar error message to include allowed file formats
Diffstat (limited to 'spec/models/group_spec.rb')
-rw-r--r-- | spec/models/group_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/group_spec.rb b/spec/models/group_spec.rb index abfc0896a41..d620943693c 100644 --- a/spec/models/group_spec.rb +++ b/spec/models/group_spec.rb @@ -240,7 +240,7 @@ describe Group do it "is false if avatar is html page" do group.update_attribute(:avatar, 'uploads/avatar.html') - expect(group.avatar_type).to eq(["only images allowed"]) + expect(group.avatar_type).to eq(["file format is not supported. Please try one of the following supported formats: png, jpg, jpeg, gif, bmp, tiff"]) end end |