Sha256: a9dbdec5520a4a6bd79da0c52908c8f791a7fab3a29d39ba346c4ac8f11643a5

Contents?: true

Size: 760 Bytes

Versions: 2

Compression:

Stored size: 760 Bytes

Contents

require 'test_helper'

class GeoControllerTest < ActionDispatch::IntegrationTest
  test 'should return a success code' do
    get '/geo-sitemap.xml'
    assert_equal 200, status
  end

  test 'should return the right xml' do
    get '/geo-sitemap.xml'
    assert_equal response.body, "<?xml version=\"1.0\" encoding=\"UTF-8\"?><?xml-stylesheet type=\"text/xsl\" href=\"http://www.sportsandspineortho.com/wp-content/plugins/wpseo-local/styles/geo-sitemap.xsl\"?>\n<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:geo=\"http://www.google.com/geo/schemas/sitemap/1.0\">\n  <url>\n    <loc>http://www.example.com/locations.kml</loc>\n    <lastmod>2016-09-22T18:11:05-03:00</lastmod>\n    <priority>1</priority>\n  </url>\n</urlset>\n"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_sitemap-0.2.1 test/integration/geo_controller_test.rb
rails_sitemap-0.2.0 test/integration/geo_controller_test.rb