diff options
author | Job van der Voort <jobvandervoort@gmail.com> | 2015-04-21 17:21:51 +0300 |
---|---|---|
committer | Job van der Voort <jobvandervoort@gmail.com> | 2015-04-21 17:21:51 +0300 |
commit | a8e93b7f51d968c1380ed210499869b62b07fd15 (patch) | |
tree | c864e80dfd9cf4f83fcede678acc986e3a125bf5 /spec/helpers/groups_helper.rb | |
parent | 0625b15a481b3a3edd88110b3c18031ad9068d2f (diff) |
Version 7.10.0.rc5v7.10.0.rc5
Diffstat (limited to 'spec/helpers/groups_helper.rb')
-rw-r--r-- | spec/helpers/groups_helper.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/helpers/groups_helper.rb b/spec/helpers/groups_helper.rb deleted file mode 100644 index 3e99ab84ec9..00000000000 --- a/spec/helpers/groups_helper.rb +++ /dev/null @@ -1,21 +0,0 @@ -require 'spec_helper' - -describe GroupsHelper do - describe 'group_icon' do - avatar_file_path = File.join(Rails.root, 'public', 'gitlab_logo.png') - - it 'should return an url for the avatar' do - group = create(:group) - group.avatar = File.open(avatar_file_path) - group.save! - expect(group_icon(group.path).to_s). - to match("/uploads/group/avatar/#{ group.id }/gitlab_logo.png") - end - - it 'should give default avatar_icon when no avatar is present' do - group = create(:group) - group.save! - expect(group_icon(group.path)).to match('group_avatar.png') - end - end -end |