diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-10 12:02:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-10 12:02:37 +0000 |
commit | 3a2b6c7c9653ddbd32ea0c2434b0c9b638832b3e (patch) | |
tree | d26c2e0017af9ba1ce3a8767c9dc2f2584a0f776 /test/integration | |
parent | 575f4032a221c8fc7919c2997c13e1424da8006e (diff) | |
download | redmine-3a2b6c7c9653ddbd32ea0c2434b0c9b638832b3e.tar.gz redmine-3a2b6c7c9653ddbd32ea0c2434b0c9b638832b3e.zip |
Enforce issue assignee validation (#23921).
git-svn-id: http://svn.redmine.org/redmine/trunk@16055 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/api_test/issues_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb index 077ae9601..d4040201e 100644 --- a/test/integration/api_test/issues_test.rb +++ b/test/integration/api_test/issues_test.rb @@ -689,6 +689,14 @@ JSON assert_select 'errors error', :text => "Subject cannot be blank" end + test "PUT /issues/:id.xml with invalid assignee should return error" do + user = User.generate! + put '/issues/6.xml', {:issue => {:assigned_to_id => user.id}}, credentials('jsmith') + + assert_response :unprocessable_entity + assert_select 'errors error', :text => "Assignee is invalid" + end + test "PUT /issues/:id.json" do assert_difference('Journal.count') do put '/issues/6.json', |