Some more tests

This commit is contained in:
Shaun McDonald 2009-05-07 17:57:59 +00:00
parent 3404fd5bbe
commit 98a76339b8
2 changed files with 54 additions and 0 deletions

View file

@ -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