summaryrefslogtreecommitdiff
path: root/spec/helpers/groups_helper_spec.rb
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-10-03 12:21:02 +0200
committerTim Zallmann <tzallmann@gitlab.com>2017-10-04 14:27:09 +0200
commit6168e33e9e2f327f078e07b71c466dcc9fa9813a (patch)
treecfb89d1ac2631ba06236491e18bef8b1fb628acd /spec/helpers/groups_helper_spec.rb
parent1b752968757873434404a2bf82ea360ce829ec87 (diff)
downloadgitlab-ce-6168e33e9e2f327f078e07b71c466dcc9fa9813a.tar.gz
Fixed Test
Diffstat (limited to 'spec/helpers/groups_helper_spec.rb')
-rw-r--r--spec/helpers/groups_helper_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/helpers/groups_helper_spec.rb b/spec/helpers/groups_helper_spec.rb
index 55de03c8ed2..4fe50d120d7 100644
--- a/spec/helpers/groups_helper_spec.rb
+++ b/spec/helpers/groups_helper_spec.rb
@@ -48,9 +48,8 @@ describe GroupsHelper do
it 'returns an based url for the avatar if private' do
allow(ActionController::Base).to receive(:asset_host).and_return(asset_host)
- group = create(:group)
+ group = create(:group, :private)
group.avatar = fixture_file_upload(avatar_file_path)
- group.private = true
group.save!
expect(group_icon_url(group.path).to_s)
.to match("/uploads/-/system/group/avatar/#{group.id}/banana_sample.gif")