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, "\n\n \n http://www.example.com/locations.kml\n 2016-09-22T18:11:05-03:00\n 1\n \n\n" end end