tracks/tracks/test/functional/todo_controller_test.rb
bsag e2487c412b Fixed bugs introduced in [190] which broke signup and change password (#213).
Also fixed user functional and unit tests to include new functionality.



git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@191 a4c988fc-2ded-0310-b66e-134b36920a42
2006-02-26 10:58:39 +00:00

20 lines
562 B
Ruby

require File.dirname(__FILE__) + '/../test_helper'
require 'todo_controller'
# Re-raise errors caught by the controller.
class TodoController; def rescue_action(e) raise e end; end
class TodoControllerTest < Test::Unit::TestCase
def setup
@controller = TodoController.new
@request, @response = ActionController::TestRequest.new, ActionController::TestResponse.new
end
# Test whether unlogged in users are redirected to login
#
def test_get_index
get :index
assert_redirected_to :controller => 'login', :action => 'login'
end
end