diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-19 20:25:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-19 20:25:55 +0000 |
commit | 4229fafc8f1ea588c0c1a793c0c3d4b481b9bf78 (patch) | |
tree | 210fa312b0312d3c7298081f3e73d686a86f2c37 /test/integration/sudo_mode_test.rb | |
parent | c92a343951a0b70e5d5cb01d8de1dd2795717052 (diff) | |
download | redmine-4229fafc8f1ea588c0c1a793c0c3d4b481b9bf78.tar.gz redmine-4229fafc8f1ea588c0c1a793c0c3d4b481b9bf78.zip |
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
Diffstat (limited to 'test/integration/sudo_mode_test.rb')
-rw-r--r-- | test/integration/sudo_mode_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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", |