spec/document_spec.rb in metainspector-5.6.0 vs spec/document_spec.rb in metainspector-5.7.0

- old
+ new

@@ -80,17 +80,17 @@ describe "allow_non_html_content option" do it "should not allow non-html content type by default" do expect do image_url = MetaInspector::Document.new('http://pagerankalert.com/image.png') image_url.title - end.to raise_error(MetaInspector::ParserError) + end.to raise_error(MetaInspector::NonHtmlError) end it "should not allow non-html content type when explicitly disallowed" do expect do image_url = MetaInspector::Document.new('http://pagerankalert.com/image.png', allow_non_html_content: false) image_url.title - end.to raise_error(MetaInspector::ParserError) + end.to raise_error(MetaInspector::NonHtmlError) end it "should allow non-html content type when explicitly allowed" do expect do image_url = MetaInspector::Document.new('http://pagerankalert.com/image.png', allow_non_html_content: true)