spec/text_at_spec.rb in prawn-1.3.0 vs spec/text_at_spec.rb in prawn-2.0.0

- old
+ new

@@ -98,10 +98,9 @@ text.strings.first.should == str end it "should raise_error an exception when a utf-8 incompatible string is rendered" do str = "Blah \xDD" - str.force_encoding(Encoding::ASCII_8BIT) lambda { @pdf.draw_text(str, :at => [0, 0]) }.should raise_error( Prawn::Errors::IncompatibleStringEncoding) end it "should not raise an exception when a shift-jis string is rendered" do