A platform for community discussion. Free, open, simple.
FIX: This leaves an empty example group in TRAVIS mode
Robin Ward2aae0f0d8ba0
diff --git a/spec/requests/user_avatars_controller_spec.rb b/spec/requests/user_avatars_controller_spec.rbindex 4f639fd15ba..8ba24ce186f 100644--- a/spec/requests/user_avatars_controller_spec.rb+++ b/spec/requests/user_avatars_controller_spec.rb@@ -20,12 +20,13 @@ describe UserAvatarsController docontext 'show' do- context 'invalid' do- after do- FileUtils.rm(Discourse.store.path_for(upload))- end- # travis is not good here, no image magick- if !ENV["TRAVIS"]+ # travis is not good here, no image magick+ if !ENV["TRAVIS"]+ context 'invalid' do+ after do+ FileUtils.rm(Discourse.store.path_for(upload))+ end+let :upload doFile.open(file_from_fixtures("cropped.png")) do |f|UploadCreator.new(@@ -65,7 +66,6 @@ describe UserAvatarsController doexpect(upload.extension).to eq('png')endend-endit 'handles non local content correctly' do