spec/source_spec.rb in imgkit-1.3.4 vs spec/source_spec.rb in imgkit-1.3.5

- old
+ new

@@ -15,9 +15,14 @@ it "should return false if passed HTML" do source = IMGKit::Source.new('<blink>Oh Hai!</blink>') source.should_not be_url end + + it "should return false if passed HTML with a line starting with 'http'" do + source = IMGKit::Source.new("<blink>Oh Hai!</blink>\nhttp://google.com") + source.should_not be_url + end end describe "#file?" do it "should return true if passed a file" do source = IMGKit::Source.new(File.new(__FILE__))