summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-08-24 07:46:06 -0700
committerRobert Speicher <rspeicher@gmail.com>2015-08-24 12:25:41 -0700
commit6652fac234ef978b3d2a0a2ffb23c9225e7860de (patch)
tree83c945ff3414142d2a20374f0cf65e3295b46fda /spec
parent683f77bc5ae571323b0917d06b6ca9adedc1278c (diff)
downloadgitlab-ce-6652fac234ef978b3d2a0a2ffb23c9225e7860de.tar.gz
Fix Error 500 in API when accessing a group that has an avatar
Closes #2340
Diffstat (limited to 'spec')
-rw-r--r--spec/requests/api/groups_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/requests/api/groups_spec.rb b/spec/requests/api/groups_spec.rb
index 1d5b4f6f36b..13cced81875 100644
--- a/spec/requests/api/groups_spec.rb
+++ b/spec/requests/api/groups_spec.rb
@@ -7,7 +7,8 @@ describe API::API, api: true do
let(:user2) { create(:user) }
let(:user3) { create(:user) }
let(:admin) { create(:admin) }
- let!(:group1) { create(:group) }
+ let(:avatar_file_path) { File.join(Rails.root, 'spec', 'fixtures', 'banana_sample.gif') }
+ let!(:group1) { create(:group, avatar: File.open(avatar_file_path)) }
let!(:group2) { create(:group) }
before do