Add test for redirect routes

This commit is contained in:
Tom Hughes 2013-11-25 21:10:56 +00:00
parent 415f6a42c7
commit fbf92b17a0

View file

@ -0,0 +1,19 @@
require File.dirname(__FILE__) + '/../test_helper'
class RedirectTest < ActionDispatch::IntegrationTest
def test_history_redirects
get "/browse"
assert_response :redirect
assert_redirected_to "/history"
get "/browse/changesets"
assert_response :redirect
assert_redirected_to "/history"
end
def test_history_feed_redirects
get "/browse/changesets/feed"
assert_response :redirect
assert_redirected_to "/history/feed"
end
end