+
+ # 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_redirected_to :controller => 'trace', :action => 'list', :display_name => users(:public_user).display_name
+ end
+