I am trying to build a debian package of minimagick, to be found here:
https://github.com/minimagick/minimagick

If git-buildpackage runs the tests i get two errors about file not
found:

Error: test_image_io_reading(ImageTest)
Errno::ENOENT: No such file or directory -
~/Build/diaspora/build_mini_magick/ruby-mini-magick/ruby-mini-magick/lib/mini_magick.rb:70:in
`initialize'
     67:           if File.respond_to?(:binread)
     68:             stream = StringIO.new
File.binread(stream.path.to_s)
     69:           else
  => 70:             stream = StringIO.new
File.open(stream.path.to_s,"rb") { |f| f.read }
     71:           end
     72:         end
     73:
/home/molloy/Build/diaspora/build_mini_magick/ruby-mini-magick/ruby-mini-magick/lib/mini_magick.rb:70:in
`open'
/home/molloy/Build/diaspora/build_mini_magick/ruby-mini-magick/ruby-mini-magick/lib/mini_magick.rb:70:in
`read'
./test/image_test.rb:40:in `test_image_io_reading'

Line 70 of lib/mini_magick.rb is shown above.
The other error is from the test "test_remote_image_with_complex_url".


------
Line 39/40 of test/image_test.rb is:

buffer = StringIO.new File.open(SIMPLE_IMAGE_PATH,"rb") { |f| f.read }
image = Image.read(buffer)

-------
test/test_helper.rb contains this:

require File.expand_path('../../lib/mini_magick', __FILE__)
module MiniMagickTestFiles
  test_files = File.expand_path(File.dirname(__FILE__) + "/files")
  SIMPLE_IMAGE_PATH    = test_files + "/simple.gif"
...
end

-------
If i run the test manually:
ruby image_test.rb i get rid of both errors i get when running
git-buildpackage. But i get a different one about "file not found" from
the test "test_simple_composite"



I am new to packaging and don't know ruby well. I looked at StringIO and
File, but can't find the source of the problem.
Thanks in advance.

-- 
Posted via http://www.ruby-forum.com/.