1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-09 00:51:31 +00:00

Tests that submitted data is present in the sudo form (#19851).

git-svn-id: http://svn.redmine.org/redmine/trunk@14344 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-06-19 20:25:55 +00:00
parent c92a343951
commit 4229fafc8f

View File

@ -19,6 +19,9 @@ class SudoTest < Redmine::IntegrationTest
assert_response :success
assert_nil User.find_by_login("psmith")
assert_select 'input[name=?][value=?]', 'user[login]', 'psmith'
assert_select 'input[name=?][value=?]', 'user[firstname]', 'Paul'
post "/users",
:user => { :login => "psmith", :firstname => "Paul",
:lastname => "Smith", :mail => "psmith@somenet.foo",