diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-03-20 23:09:33 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-03-20 23:09:33 +0100 |
commit | 19aa20d528aca670fd22954e08bf05f2f7a8fe32 (patch) | |
tree | e9fd4fd51a783fcc300aa6029f10499dfb3822b7 /spec/controllers/groups/avatars_controller_spec.rb | |
parent | 7c51d5efecdad1a7f52ffecdf57c86b7b90ca166 (diff) | |
download | gitlab-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.rb | 3 |
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 |