spec/jekyll-sitemap_spec.rb in jekyll-sitemap-0.6.0 vs spec/jekyll-sitemap_spec.rb in jekyll-sitemap-0.6.1
- old
+ new
@@ -80,8 +80,8 @@
it "does not include pages that have set 'sitemap: false'" do
expect(contents).not_to match /\/exclude-this-page\.html<\/loc>/
end
it "correctly formats timestamps of static files" do
- expect(contents).to match /\/this-is-a-subfile\.html<\/loc>\s+<lastmod>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z<\/lastmod>/
+ expect(contents).to match /\/this-is-a-subfile\.html<\/loc>\s+<lastmod>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(-|\+)\d{2}:\d{2}<\/lastmod>/
end
end