Changeset 320
- Timestamp:
- 05/05/08 03:21:37 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/picolena/templates/lib/plain_text_extractors/plain_text.rb
r318 r320 4 4 aka "plain text file" 5 5 with {|source| 6 raise " Binary file :#{source}" unless File.plain_text?(source)6 raise "binary file #{source}" unless File.plain_text?(source) 7 7 encoding=File.encoding(source) 8 8 if encoding.empty? then trunk/lib/picolena/templates/spec/models/plain_text_extractor_spec.rb
r318 r320 31 31 it "should not extract content of binary files" do 32 32 bin_file="spec/test_dirs/indexed/others/BIN_FILE_WITHOUT_EXTENSION" 33 lambda{PlainTextExtractor.extract_content_from(bin_file)}.should raise_error(RuntimeError, " Binary file :"<<bin_file)33 lambda{PlainTextExtractor.extract_content_from(bin_file)}.should raise_error(RuntimeError, "binary file "<<bin_file) 34 34 end 35 35 end
