summaryrefslogtreecommitdiffstats
path: root/test/integration/issues_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-12 20:43:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-12-12 20:43:51 +0000
commited5f487cf507988d573e815e8d5784fe17beff35 (patch)
tree9e1b4902d7c1133143305886a253d2fe471e8010 /test/integration/issues_test.rb
parente13a763ab4d22d31b0935fe949dbcd32db5e1a26 (diff)
downloadredmine-ed5f487cf507988d573e815e8d5784fe17beff35.tar.gz
redmine-ed5f487cf507988d573e815e8d5784fe17beff35.zip
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
Diffstat (limited to 'test/integration/issues_test.rb')
-rw-r--r--test/integration/issues_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb
index 48ced6bc7..4f72b9839 100644
--- a/test/integration/issues_test.rb
+++ b/test/integration/issues_test.rb
@@ -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')