From 4229fafc8f1ea588c0c1a793c0c3d4b481b9bf78 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 19 Jun 2015 20:25:55 +0000 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 --- test/integration/sudo_mode_test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/sudo_mode_test.rb b/test/integration/sudo_mode_test.rb index ce339a3a3..f535d9a95 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",