From 4229fafc8f1ea588c0c1a793c0c3d4b481b9bf78 2015-06-19 20:25:55 From: Jean-Philippe Lang Date: 2015-06-19 20:25:55 Subject: [PATCH] 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 --- diff --git a/test/integration/sudo_mode_test.rb b/test/integration/sudo_mode_test.rb index ce339a3..f535d9a 100644 --- a/test/integration/sudo_mode_test.rb +++ b/test/integration/sudo_mode_test.rb @@ -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",