Method: PlainTextExtractorDSL#which_should_for_example_extract

Defined in:
lib/picolena/templates/lib/plain_text_extractor_dsl.rb

#which_should_for_example_extract(content, file) ⇒ Object Also known as: or_extract

used by rspec to test extractors:

which_should_for_example_extract 'in a pdf file', :from => 'basic.pdf'
or_extract 'some other stuff inside another pdf file', :from => 'yet_another.pdf'

this spec will pass if ‘basic.pdf’ and ‘yet_another.pdf’ are included in an indexed directory, if every dependency is installed, and if plain text output from the extractor applied to ‘basic.pdf’ and ‘yet_another.pdf’ respectively include ‘in a pdf file’ and ‘some other stuff inside another pdf file’



44
45
46
# File 'lib/picolena/templates/lib/plain_text_extractor_dsl.rb', line 44

def which_should_for_example_extract(content, file)
  @content_and_file_examples << [content,file[:from]]
end