Explicitly declare all routes and deactivate default route.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8162 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -32,7 +32,7 @@ class AdminTest < ActionController::IntegrationTest
|
||||
get "/users/new"
|
||||
assert_response :success
|
||||
assert_template "users/new"
|
||||
post "/users/create",
|
||||
post "/users",
|
||||
:user => { :login => "psmith", :firstname => "Paul",
|
||||
:lastname => "Smith", :mail => "psmith@somenet.foo",
|
||||
:language => "en", :password => "psmith09",
|
||||
@@ -53,7 +53,7 @@ class AdminTest < ActionController::IntegrationTest
|
||||
end
|
||||
|
||||
test "Add a user as an anonymous user should fail" do
|
||||
post '/users/create',
|
||||
post '/users',
|
||||
:user => { :login => 'psmith', :firstname => 'Paul'},
|
||||
:password => "psmith09", :password_confirmation => "psmith09"
|
||||
assert_response :redirect
|
||||
|
||||
Reference in New Issue
Block a user