Fixed that updating the issue form was broken by r4011 when user is not allowed to add issues (#13188).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11405 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2013-02-16 11:35:18 +00:00
parent 1cf09a2d31
commit 7799788b3d
9 changed files with 86 additions and 30 deletions
-9
View File
@@ -65,15 +65,6 @@ class IssuesTest < ActionController::IntegrationTest
assert_equal 1, issue.status.id
end
def test_update_issue_form
log_user('jsmith', 'jsmith')
post 'projects/ecookbook/issues/new', :issue => { :tracker_id => "2"}
assert_response :success
assert_tag 'select',
:attributes => {:name => 'issue[tracker_id]'},
:child => {:tag => 'option', :attributes => {:value => '2', :selected => 'selected'}}
end
# add then remove 2 attachments to an issue
def test_issue_attachments
log_user('jsmith', 'jsmith')