spec/rtesseract_spec.rb in rtesseract-1.1.0 vs spec/rtesseract_spec.rb in rtesseract-1.2.0
- old
+ new
@@ -25,9 +25,21 @@
RTesseract.new(@path.join("images","test.png").to_s).to_s_without_spaces.should eql("HW9W")
RTesseract.new(@path.join("images","test.jpg").to_s).to_s_without_spaces.should eql("3R8Z")
RTesseract.new(@path.join("images","test.bmp").to_s).to_s_without_spaces.should eql("ZLA6")
end
+ it " support diferent processors" do
+ #Rmagick
+ RTesseract.new(@image_tiff).to_s_without_spaces.should eql("43ZZ")
+ RTesseract.new(@image_tiff, :processor => 'rmagick').to_s_without_spaces.should eql("43ZZ")
+
+ #MiniMagick
+ RTesseract.new(@image_tiff, :processor => 'mini_magick').to_s_without_spaces.should eql("43ZZ")
+
+ #QuickMagick
+ RTesseract.new(@image_tiff, :processor => 'quick_magick').to_s_without_spaces.should eql("43ZZ")
+ end
+
it " change the image" do
image = RTesseract.new(@image_tiff)
image.to_s_without_spaces.should eql("43ZZ")
image.source = @path.join("images","test1.tif").to_s
image.to_s_without_spaces.should eql("V2V4")