summaryrefslogtreecommitdiff
path: root/spec/controllers/groups/avatars_controller_spec.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-03-20 23:09:33 +0100
committerDouwe Maan <douwe@selenight.nl>2016-03-20 23:09:33 +0100
commit19aa20d528aca670fd22954e08bf05f2f7a8fe32 (patch)
treee9fd4fd51a783fcc300aa6029f10499dfb3822b7 /spec/controllers/groups/avatars_controller_spec.rb
parent7c51d5efecdad1a7f52ffecdf57c86b7b90ca166 (diff)
downloadgitlab-ce-19aa20d528aca670fd22954e08bf05f2f7a8fe32.tar.gz
Fix more specs
Diffstat (limited to 'spec/controllers/groups/avatars_controller_spec.rb')
-rw-r--r--spec/controllers/groups/avatars_controller_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/controllers/groups/avatars_controller_spec.rb b/spec/controllers/groups/avatars_controller_spec.rb
index 3dac134a731..91d639218e5 100644
--- a/spec/controllers/groups/avatars_controller_spec.rb
+++ b/spec/controllers/groups/avatars_controller_spec.rb
@@ -2,9 +2,10 @@ require 'spec_helper'
describe Groups::AvatarsController do
let(:user) { create(:user) }
- let(:group) { create(:group, owner: user, avatar: fixture_file_upload(Rails.root + "spec/fixtures/dk.png", "image/png")) }
+ let(:group) { create(:group, avatar: fixture_file_upload(Rails.root + "spec/fixtures/dk.png", "image/png")) }
before do
+ group.add_owner(user)
sign_in(user)
end