Permalink
Browse files

Fix encoding spec false failure on 1.9.3

  • Loading branch information...
1 parent 56c3996 commit 5b3484072c0d29080765a313091d4322f9afef7b @bradediger bradediger committed Aug 17, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 spec/font_spec.rb
View
@@ -302,8 +302,10 @@ def page_should_not_include_font(font)
@activa.encode_text("To").should == [[0, "To"]]
tele = "T\216l\216"
- tele.force_encoding("binary") if tele.respond_to?(:force_encoding)
- @activa.encode_text("Télé").should == [[0, tele]]
+ result = @activa.encode_text("Télé")
+ result.length.should == 1
+ result[0][0].should == 0
+ result[0][1].bytes.to_a.should == tele.bytes.to_a
@activa.encode_text("Technology").should == [[0, "Technology"]]
@activa.encode_text("Technology...").should == [[0, "Technology..."]]

0 comments on commit 5b34840

Please sign in to comment.