Merged r3050 from trunk.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@3052 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2009-11-14 20:18:57 +00:00
parent 540d204e9a
commit ce41d4f9b0
3 changed files with 14 additions and 1 deletions
+6
View File
@@ -63,4 +63,10 @@ class AdminTest < ActionController::IntegrationTest
assert_response :success
assert_template "admin/projects"
end
def test_add_a_user_as_an_anonymous_user_should_fail
post '/users/add', :user => { :login => 'psmith', :firstname => 'Paul'}, :password => "psmith09", :password_confirmation => "psmith09"
assert_response :redirect
assert_redirected_to "/login?back_url=http%3A%2F%2Fwww.example.com%2Fusers%2Fadd"
end
end