Skip to content

Commit e1f0d16

Browse files
author
Michal Barla
committed
Add test for multiple language support
This test does not require any additional tesseract language backends to be installed, but might fail if tesseract changes its error messages in the future.
1 parent 26e6615 commit e1f0d16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/unit/test_extract_text.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_ocr_extraction
4040

4141
def test_ocr_extraction_in_mock_language
4242
exception = assert_raise(Docsplit::ExtractionFailed) {Docsplit.extract_text('test/fixtures/corrosion.pdf', :pages => 'all', :output => OUTPUT, :language => "mock")}
43-
assert(exception.message.match("mock.traineddata"))
43+
assert exception.message.match("tessdata/mock"), "Expected problem with loading data for language 'mock'"
4444
end
4545

4646
def test_password_protected

0 commit comments

Comments
 (0)