Commit 59c6ddcd authored by Tim Zallmann's avatar Tim Zallmann

Fix for Lint Error + Upload Test

parent 5f41cddf
module GroupsHelper module GroupsHelper
def can_change_group_visibility_level?(group) def can_change_group_visibility_level?(group)
can?(current_user, :change_visibility_level, group) can?(current_user, :change_visibility_level, group)
end end
......
...@@ -844,7 +844,7 @@ describe Project do ...@@ -844,7 +844,7 @@ describe Project do
let(:project) { create(:project) } let(:project) { create(:project) }
context 'when avatar file is uploaded' do context 'when avatar file is uploaded' do
let(:project) { create(:project, :with_avatar) } let(:project) { create(:project, :public, :with_avatar) }
let(:avatar_path) { "/uploads/-/system/project/avatar/#{project.id}/dk.png" } let(:avatar_path) { "/uploads/-/system/project/avatar/#{project.id}/dk.png" }
let(:gitlab_host) { "http://#{Gitlab.config.gitlab.host}" } let(:gitlab_host) { "http://#{Gitlab.config.gitlab.host}" }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment