mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: This leaves an empty example group in TRAVIS mode
Instead we should remove the entire context.
This commit is contained in:
parent
a7d9334a93
commit
2aae0f0d8b
@ -20,12 +20,13 @@ describe UserAvatarsController do
|
|||||||
|
|
||||||
context 'show' do
|
context 'show' do
|
||||||
|
|
||||||
context 'invalid' do
|
# travis is not good here, no image magick
|
||||||
after do
|
if !ENV["TRAVIS"]
|
||||||
FileUtils.rm(Discourse.store.path_for(upload))
|
context 'invalid' do
|
||||||
end
|
after do
|
||||||
# travis is not good here, no image magick
|
FileUtils.rm(Discourse.store.path_for(upload))
|
||||||
if !ENV["TRAVIS"]
|
end
|
||||||
|
|
||||||
let :upload do
|
let :upload do
|
||||||
File.open(file_from_fixtures("cropped.png")) do |f|
|
File.open(file_from_fixtures("cropped.png")) do |f|
|
||||||
UploadCreator.new(
|
UploadCreator.new(
|
||||||
@ -65,7 +66,6 @@ describe UserAvatarsController do
|
|||||||
expect(upload.extension).to eq('png')
|
expect(upload.extension).to eq('png')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'handles non local content correctly' do
|
it 'handles non local content correctly' do
|
||||||
|
Loading…
Reference in New Issue
Block a user