testing that an actual jpeg is zoomified

This commit is contained in:
Donald Ball 2008-11-21 00:32:01 -06:00
parent 361a422172
commit 5f5f70e256
2 changed files with 11 additions and 0 deletions

BIN
spec/data/1024x768.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

View File

@ -5,4 +5,15 @@ describe Zoomifier do
it "should respond to its main method" do
Zoomifier.should respond_to(:zoomify)
end
describe "1024x768.jpg" do
it "should zoomify" do
output = File.dirname(__FILE__) + '/data/1024x768/'
FileUtils.rm_rf(output)
input = File.dirname(__FILE__) + '/data/1024x768.jpg'
Zoomifier::zoomify(input)
File.directory?(output).should be_true
FileUtils.rm_rf(output)
end
end
end