Permalink
Browse files

fix spec to be specific about binary encodings

  • Loading branch information...
1 parent 22b4700 commit 785378126724c09afcfcdfe234f1ab8c506d7fe5 @brianmario committed Sep 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/encoding_detector_spec.rb
@@ -104,7 +104,7 @@
MAPPING.each do |mapping|
file, encoding, type = mapping
- test "#{file} should be detected as #{encoding}" do
+ test "#{file} should be detected as #{encoding || 'binary'}" do
path = File.expand_path "../fixtures/#{file}", __FILE__
content = File.read path
guessed = @detector.detect content

0 comments on commit 7853781

Please sign in to comment.