Skip to content

Instantly share code, notes, and snippets.

@awead
Created July 25, 2013 14:23
Show Gist options
  • Save awead/6080178 to your computer and use it in GitHub Desktop.
Save awead/6080178 to your computer and use it in GitHub Desktop.
2 sufia failures
Failures:
1) GenericFilesController update should change mime type when restoring a revision with a different mime type
Failure/Error: post :update, :id=>@generic_file.pid, :filedata=>file, :Filename=>"The world", :generic_file=>{:tag=>[''], :permissions=>{:new_user_name=>{'[email protected]'=>'edit'}}}
Magick::ImageMagickError:
no decode delegate for this image format `' @ error/blob.c/BlobToImage/358
# /Users/adamw/Projects/Github/projecthydra/sufia/sufia-models/lib/sufia/models/generic_file/thumbnail.rb:85:in `load_image_transformer'
# /Users/adamw/Projects/Github/projecthydra/sufia/sufia-models/lib/sufia/models/generic_file/thumbnail.rb:64:in `scale_image'
# /Users/adamw/Projects/Github/projecthydra/sufia/sufia-models/lib/sufia/models/generic_file/thumbnail.rb:57:in `create_image_thumbnail'
# /Users/adamw/Projects/Github/projecthydra/sufia/sufia-models/lib/sufia/models/generic_file/thumbnail.rb:11:in `create_thumbnail'
# /Users/adamw/Projects/Github/projecthydra/sufia/sufia-models/lib/sufia/models/jobs/characterize_job.rb:35:in `after_characterize'
# /Users/adamw/Projects/Github/projecthydra/sufia/sufia-models/lib/sufia/models/jobs/characterize_job.rb:30:in `run'
# /Users/adamw/Projects/Github/projecthydra/sufia/sufia-models/lib/sufia/models/resque.rb:24:in `perform'
# /Users/adamw/Projects/Github/projecthydra/sufia/sufia-models/lib/sufia/models/resque.rb:15:in `push'
# /Users/adamw/Projects/Github/projecthydra/sufia/sufia-models/lib/sufia/models/generic_file/characterization.rb:31:in `characterize_if_changed'
# /Users/adamw/Projects/Github/projecthydra/sufia/lib/sufia/files_controller_behavior.rb:158:in `update'
# /Users/adamw/Projects/Github/projecthydra/sufia/spec/controllers/generic_files_controller_spec.rb:297:in `block (3 levels) in <top (required)>'
2) FitsDatastream should have a filename
Failure/Error: @file.filename.should_not be_empty
expected empty? to return false, got true
# /Users/adamw/Projects/Github/projecthydra/sufia/spec/models/fits_datastream_spec.rb:22:in `block (2 levels) in <top (required)>'
Finished in 7 minutes 26 seconds
338 examples, 2 failures, 6 pending
Failed examples:
rspec /Users/adamw/Projects/Github/projecthydra/sufia/spec/controllers/generic_files_controller_spec.rb:285 # GenericFilesController update should change mime type when restoring a revision with a different mime type
rspec /Users/adamw/Projects/Github/projecthydra/sufia/spec/models/fits_datastream_spec.rb:21 # FitsDatastream should have a filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment