]> git.openstreetmap.org Git - rails.git/blob - test/integration/redirect_test.rb
Fix scroll bar issue on edit pages
[rails.git] / test / integration / redirect_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class RedirectTest  < ActionDispatch::IntegrationTest
4   def test_history_redirects
5     get "/browse"
6     assert_response :redirect
7     assert_redirected_to "/history"
8
9     get "/browse/changesets"
10     assert_response :redirect
11     assert_redirected_to "/history"
12   end
13
14   def test_history_feed_redirects
15     get "/browse/changesets/feed"
16     assert_response :redirect
17     assert_redirected_to "/history/feed"
18   end
19 end