mirror of
https://github.com/redmine/redmine.git
synced 2026-07-07 12:51:58 +02:00
Refactor: rename UsersController#add to #new
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4229 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -107,14 +107,14 @@ class UsersControllerTest < ActionController::TestCase
|
||||
assert project_ids.include?(2) #private project admin can see
|
||||
end
|
||||
|
||||
context "GET :add" do
|
||||
context "GET :new" do
|
||||
setup do
|
||||
get :add
|
||||
get :new
|
||||
end
|
||||
|
||||
should_assign_to :user
|
||||
should_respond_with :success
|
||||
should_render_template :add
|
||||
should_render_template :new
|
||||
end
|
||||
|
||||
context "POST :create" do
|
||||
@@ -148,7 +148,7 @@ class UsersControllerTest < ActionController::TestCase
|
||||
|
||||
should_assign_to :user
|
||||
should_respond_with :success
|
||||
should_render_template :add
|
||||
should_render_template :new
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user