spec/line_wrap_spec.rb in prawn-0.13.0 vs spec/line_wrap_spec.rb in prawn-0.13.1

- old
+ new

@@ -111,11 +111,11 @@ @arranger.format_array = array string = @line_wrap.wrap_line(:arranger => @arranger, :width => @one_word_width, :document => @pdf) expected = @pdf.font.normalize_encoding("hello#{Prawn::Text::SHY}") - expected.force_encoding("utf-8") if "".respond_to?(:force_encoding) + expected.force_encoding(Encoding::UTF_8) string.should == expected @pdf.font("#{Prawn::DATADIR}/fonts/DejaVuSans.ttf") @line_wrap = Prawn::Text::Formatted::LineWrap.new @@ -200,10 +200,10 @@ @arranger.format_array = array string = @line_wrap.wrap_line(:arranger => @arranger, :width => @one_word_width, :document => @pdf) expected = @pdf.font.normalize_encoding("hello#{Prawn::Text::SHY}") - expected.force_encoding("utf-8") if "".respond_to?(:force_encoding) + expected.force_encoding(Encoding::UTF_8) string.should == expected @pdf.font("#{Prawn::DATADIR}/fonts/DejaVuSans.ttf") @line_wrap = Prawn::Text::Formatted::LineWrap.new