code layout clean up of "Add a user as an anonymous user should fail" at test/integration/admin_test.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7495 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-09-24 10:11:52 +00:00
parent dd431af597
commit a16d2c2b2d
1 changed files with 3 additions and 1 deletions

View File

@ -53,7 +53,9 @@ class AdminTest < ActionController::IntegrationTest
end end
test "Add a user as an anonymous user should fail" do test "Add a user as an anonymous user should fail" do
post '/users/create', :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_response :redirect
assert_redirected_to "/login?back_url=http%3A%2F%2Fwww.example.com%2Fusers" assert_redirected_to "/login?back_url=http%3A%2F%2Fwww.example.com%2Fusers"
end end