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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user