testing that an actual jpeg is zoomified
This commit is contained in:
parent
361a422172
commit
5f5f70e256
BIN
spec/data/1024x768.jpg
Executable file
BIN
spec/data/1024x768.jpg
Executable file
Binary file not shown.
After Width: | Height: | Size: 97 KiB |
@ -5,4 +5,15 @@ describe Zoomifier do
|
|||||||
it "should respond to its main method" do
|
it "should respond to its main method" do
|
||||||
Zoomifier.should respond_to(:zoomify)
|
Zoomifier.should respond_to(:zoomify)
|
||||||
end
|
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
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user