X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d10931effaabdbdd063029394981a26893a47db5..f68ca9ebc223b276f53d3073367d7e3d8ed9e6c8:/test/functional/trace_controller_test.rb diff --git a/test/functional/trace_controller_test.rb b/test/functional/trace_controller_test.rb index 475d3eb3e..f60d75679 100644 --- a/test/functional/trace_controller_test.rb +++ b/test/functional/trace_controller_test.rb @@ -12,6 +12,19 @@ class TraceControllerTest < ActionController::TestCase assert_template 'list' end + # Check that I can get mine + def test_list_mine + # First try to get it when not logged in + get :mine + assert_redirected_to :controller => 'user', :action => 'login', :referer => '/traces/mine' + + # Now try when logged in + get :mine, {}, {:user => users(:public_user).id} + assert_response :success + assert_template 'mine' + # Should really test to see which files are shown to the user + end + # Check that the rss loads def test_rss get :georss