Fixed broken issue form update when changing tracker.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8195 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -64,6 +64,15 @@ 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')
|
||||
|
||||
@@ -97,6 +97,8 @@ class RoutingTest < ActionController::IntegrationTest
|
||||
should_route :get, "/issues/64.xml", :controller => 'issues', :action => 'show', :id => '64', :format => 'xml'
|
||||
|
||||
should_route :get, "/projects/23/issues/new", :controller => 'issues', :action => 'new', :project_id => '23'
|
||||
# issue form update
|
||||
should_route :post, "/projects/23/issues/new", :controller => 'issues', :action => 'new', :project_id => '23'
|
||||
should_route :post, "/projects/23/issues", :controller => 'issues', :action => 'create', :project_id => '23'
|
||||
should_route :post, "/issues.xml", :controller => 'issues', :action => 'create', :format => 'xml'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user