spec/jekyll-sitemap_spec.rb in jekyll-sitemap-0.7.0 vs spec/jekyll-sitemap_spec.rb in jekyll-sitemap-0.8.0

- old
+ new

@@ -27,16 +27,16 @@ it "creates a sitemap.xml file" do expect(File.exist?(dest_dir("sitemap.xml"))).to be_truthy end - it "sets the base URL for the site as priority 1.0" do - expect(contents).to match /<loc>http:\/\/example\.org\/<\/loc>\s+<lastmod>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(-|\+)\d{2}:\d{2}<\/lastmod>\s+<changefreq>weekly<\/changefreq>\s+<priority>1\.0<\/priority>/ - end - it "puts all the pages in the sitemap.xml file" do expect(contents).to match /<loc>http:\/\/example\.org\/<\/loc>/ expect(contents).to match /<loc>http:\/\/example\.org\/some-subfolder\/this-is-a-subpage\.html<\/loc>/ + end + + it "only strips 'index.html' from end of permalink" do + expect(contents).to match /<loc>http:\/\/example\.org\/some-subfolder\/test_index\.html<\/loc>/ end it "puts all the posts in the sitemap.xml file" do expect(contents).to match /<loc>http:\/\/example\.org\/2014\/03\/04\/march-the-fourth\.html<\/loc>/ expect(contents).to match /<loc>http:\/\/example\.org\/2014\/03\/02\/march-the-second\.html<\/loc>/