spec/sitemap_spec.rb in w3clove-0.7.7 vs spec/sitemap_spec.rb in w3clove-0.7.8
- old
+ new
@@ -104,13 +104,19 @@
@sitemap_for_exclusions.pages[1].url.should == 'http://example.com/'
@sitemap_for_exclusions.pages[2].url.should == 'http://example.com/faqs'
end
it "should not crash when URLs have international characters" do
- @sitemap_international.pages.length.should == 3
+ @sitemap_international.pages.length.should == 9
@sitemap_international.pages[0].url.should == 'http://example.com/international'
@sitemap_international.pages[1].url.should == 'http://example.com/romanée'
@sitemap_international.pages[2].url.should == 'http://example.com/españa'
+ @sitemap_international.pages[3].url.should == 'http://example.com/roman%C3%A9e-2'
+ @sitemap_international.pages[4].url.should == 'http://example.com/espa%C3%B1a-2'
+ @sitemap_international.pages[5].url.should == 'http://example.com/search?q=espa%C3%B1a'
+ @sitemap_international.pages[6].url.should == 'http://example.com/espa%C3%B1a-3'
+ @sitemap_international.pages[7].url.should == 'http://example.com/search?q=cami%C3%B3n'
+ @sitemap_international.pages[8].url.should == 'http://example.com/white%20space'
end
context "protocol-relative links" do
it "should include only internal links" do
@sitemap_with_protocol_relative.pages.size.should == 3