Changeset 320

Show
Ignore:
Timestamp:
05/05/08 03:21:37 (7 months ago)
Author:
eric.dumin..@gmail.com
Message:

Harmonizing raise messages

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/picolena/templates/lib/plain_text_extractors/plain_text.rb

    r318 r320  
    44  aka "plain text file" 
    55  with {|source| 
    6     raise "Binary file : #{source}" unless File.plain_text?(source) 
     6    raise "binary file #{source}" unless File.plain_text?(source) 
    77    encoding=File.encoding(source) 
    88    if encoding.empty? then 
  • trunk/lib/picolena/templates/spec/models/plain_text_extractor_spec.rb

    r318 r320  
    3131  it "should not extract content of binary files" do 
    3232    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) 
    3434  end 
    3535end