spec/pdfkit_spec.rb in pdfkit-0.4.2 vs spec/pdfkit_spec.rb in pdfkit-0.4.3

- old
+ new

@@ -32,9 +32,14 @@ ['--disable-smart-shrinking', '--margin-top', '--margin-right', '--margin-bottom', '--margin-left'].each do |option| pdfkit.options.should have_key(option) end end + it "should default to 'UTF-8' encoding" do + pdfkit = PDFKit.new('Captación') + pdfkit.options['--encoding'].should == 'UTF-8' + end + it "should not have any stylesheedt by default" do pdfkit = PDFKit.new('<h1>Oh Hai</h1>') pdfkit.stylesheets.should be_empty end end