Sha256: 72c7e03aa6de6c713aa0deba6405c1d4029e6c4f034f6f681060c8690029979e
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
# NOTICE: This test was disabled in pull request #8! require 'spec_helper' require 'bunto-last-modified-at' describe(Bunto::BuntoSitemap) do let(:overrides) do { "source" => source_dir, "destination" => dest_dir, "url" => "http://example.org", "collections" => { "my_collection" => { "output" => true }, "other_things" => { "output" => false } } } end let(:config) do Bunto.configuration(overrides) end let(:site) { Bunto::Site.new(config) } let(:contents) { File.read(dest_dir("sitemap.xml")) } before(:each) do site.process end context "with bunto-last-modified-at" do it "correctly adds the modified time to the posts" do expect(contents).to match /<loc>http:\/\/example.org\/2015\/01\/18\/bunto-last-modified-at.html<\/loc>\s+<lastmod>2015-01-19T07:03:38\+00:00<\/lastmod>/ end it "correctly adds the modified time to the pages" do expect(contents).to match /<loc>http:\/\/example.org\/bunto-last-modified-at\/page.html<\/loc>\s+<lastmod>2015-01-19T07:03:38\+00:00<\/lastmod>/ end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bunto-sitemap-3.0.0 | spec/test_bunto-last-modified-at.rb |