spec/source_spec.rb in pdfkit-0.4.6 vs spec/source_spec.rb in pdfkit-0.5.0
- old
+ new
@@ -15,9 +15,14 @@
it "should return false if passed HTML" do
source = PDFKit::Source.new('<blink>Oh Hai!</blink>')
source.should_not be_url
end
+
+ it "should return false if passed HTML with embedded urls at the beginning of a line" do
+ source = PDFKit::Source.new("<blink>Oh Hai!</blink>\nhttp://www.google.com")
+ source.should_not be_url
+ end
end
describe "#file?" do
it "should return true if passed a file" do
source = PDFKit::Source.new(File.new(__FILE__))