summaryrefslogtreecommitdiffstats
path: root/test/integration/admin_test.rb
diff options
context:
space:
mode:
authorEtienne Massip <etienne.massip@gmail.com>2011-12-10 13:33:01 +0000
committerEtienne Massip <etienne.massip@gmail.com>2011-12-10 13:33:01 +0000
commit7ba57e517ba0d90c5e603e53f3334ee31a56bc0c (patch)
tree731cddb42be1399cfe1305f39e8b56f22371a81e /test/integration/admin_test.rb
parenteb789b147a60b33ff0e04b56e213c35b555b71ac (diff)
downloadredmine-7ba57e517ba0d90c5e603e53f3334ee31a56bc0c.tar.gz
redmine-7ba57e517ba0d90c5e603e53f3334ee31a56bc0c.zip
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
Diffstat (limited to 'test/integration/admin_test.rb')
-rw-r--r--test/integration/admin_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/admin_test.rb b/test/integration/admin_test.rb
index 570cbe6fc..ab86505c5 100644
--- a/test/integration/admin_test.rb
+++ b/test/integration/admin_test.rb
@@ -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