Sha256: 5e389dd3cde3348156757846db46de5e668c1935b49f3cfd5978b67ee4e2850f
Contents?: true
Size: 856 Bytes
Versions: 4
Compression:
Stored size: 856 Bytes
Contents
require 'test_helper' class SitemapsControllerTest < ActionDispatch::IntegrationTest test 'should return a success code' do get '/sitemap.xml' assert_equal 200, status end test 'should return the right xml' do get '/sitemap.xml' assert_equal response.body, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n <sitemap>\n <loc>http://www.example.com/pages-sitemap.xml</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n </sitemap>\n <sitemap>\n <loc>http://www.example.com/attachment-sitemap.xml</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n </sitemap>\n <sitemap>\n <loc>http://www.example.com/geo-sitemap.xml</loc>\n <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n </sitemap>\n</sitemapindex>\n" end end
Version data entries
4 entries across 4 versions & 1 rubygems