X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d10931effaabdbdd063029394981a26893a47db5..0e5e08a96e62a7bc058ac1cf87f5808f06988bb4:/test/functional/trace_controller_test.rb?ds=sidebyside 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