diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-28 15:28:50 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-09-28 15:28:50 +0000 |
commit | 3a3263102a7cda4be1c90168a9d32fa904d58272 (patch) | |
tree | bcd4ec938b2109caba6238d9bdc426c9ae335f5f /test/integration | |
parent | 79e30e7087d714ad81de83d389c37ae7d46d4dad (diff) | |
download | redmine-3a3263102a7cda4be1c90168a9d32fa904d58272.tar.gz redmine-3a3263102a7cda4be1c90168a9d32fa904d58272.zip |
Refactor: split UsersController#add into #add and #create
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4215 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/admin_test.rb | 4 | ||||
-rw-r--r-- | test/integration/routing_test.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/admin_test.rb b/test/integration/admin_test.rb index 9ea9e9809..62ddc533f 100644 --- a/test/integration/admin_test.rb +++ b/test/integration/admin_test.rb @@ -25,7 +25,7 @@ class AdminTest < ActionController::IntegrationTest get "/users/add" assert_response :success assert_template "users/add" - post "/users/add", :user => { :login => "psmith", :firstname => "Paul", :lastname => "Smith", :mail => "psmith@somenet.foo", :language => "en" }, :password => "psmith09", :password_confirmation => "psmith09" + post "/users/create", :user => { :login => "psmith", :firstname => "Paul", :lastname => "Smith", :mail => "psmith@somenet.foo", :language => "en" }, :password => "psmith09", :password_confirmation => "psmith09" user = User.find_by_login("psmith") assert_kind_of User, user @@ -42,7 +42,7 @@ class AdminTest < ActionController::IntegrationTest end test "Add a user as an anonymous user should fail" do - post '/users/add', :user => { :login => 'psmith', :firstname => 'Paul'}, :password => "psmith09", :password_confirmation => "psmith09" + post '/users/create', :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%2Fnew" end diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index 37f262909..74b7d990d 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -250,7 +250,7 @@ class RoutingTest < ActionController::IntegrationTest should_route :get, "/users/444/edit", :controller => 'users', :action => 'edit', :id => '444' should_route :get, "/users/222/edit/membership", :controller => 'users', :action => 'edit', :id => '222', :tab => 'membership' - should_route :post, "/users/new", :controller => 'users', :action => 'add' + should_route :post, "/users/new", :controller => 'users', :action => 'create' should_route :post, "/users/444/edit", :controller => 'users', :action => 'edit', :id => '444' should_route :post, "/users/123/memberships", :controller => 'users', :action => 'edit_membership', :id => '123' should_route :post, "/users/123/memberships/55", :controller => 'users', :action => 'edit_membership', :id => '123', :membership_id => '55' |