spec/document_spec.rb in metainspector-1.17.3 vs spec/document_spec.rb in metainspector-2.0.0
- old
+ new
@@ -44,19 +44,16 @@
"http://twitter.com/share"],
"images" => ["http://pagerankalert.com/images/pagerank_alert.png?1305794559"],
"charset" => "utf-8",
"feed" => "http://feeds.feedburner.com/PageRankAlert",
"content_type" =>"text/html",
- "meta" => {
- "name" => {
- "description"=> "Track your PageRank(TM) changes and receive alerts by email",
- "keywords" => "pagerank, seo, optimization, google",
- "robots" => "all,follow",
- "csrf_param" => "authenticity_token",
- "csrf_token" => "iW1/w+R8zrtDkhOlivkLZ793BN04Kr3X/pS+ixObHsE="
- },
- "property"=>{}
- }
+ "meta_tags" => { "name" => { "description" => ["Track your PageRank(TM) changes and receive alerts by email"],
+ "keywords" => ["pagerank, seo, optimization, google"], "robots"=>["all,follow"],
+ "csrf-param" => ["authenticity_token"],
+ "csrf-token" => ["iW1/w+R8zrtDkhOlivkLZ793BN04Kr3X/pS+ixObHsE="] },
+ "http-equiv" => {},
+ "property" => {},
+ "charset" => ["utf-8"] }
}
end
describe 'exception handling' do
it "should parse images when parse_html_content_type_only is not specified" do