Add test for redirect routes
This commit is contained in:
parent
415f6a42c7
commit
fbf92b17a0
1 changed files with 19 additions and 0 deletions
19
test/integration/redirect_test.rb
Normal file
19
test/integration/redirect_test.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue