summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-16 11:35:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-16 11:35:18 +0000
commit7799788b3de62a6af32c9d573904a929992d7ab0 (patch)
treee7ee0f18db9275d0d546b7c3709bd718eff92195 /test/integration
parent1cf09a2d31bf08cfa8c59da6fb40a6028819c15c (diff)
downloadredmine-7799788b3de62a6af32c9d573904a929992d7ab0.tar.gz
redmine-7799788b3de62a6af32c9d573904a929992d7ab0.zip
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
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/issues_test.rb9
-rw-r--r--test/integration/routing/issues_test.rb4
2 files changed, 2 insertions, 11 deletions
diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb
index 549c1cae0..e0659b43c 100644
--- a/test/integration/issues_test.rb
+++ b/test/integration/issues_test.rb
@@ -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')
diff --git a/test/integration/routing/issues_test.rb b/test/integration/routing/issues_test.rb
index 68ed436bf..72760ede1 100644
--- a/test/integration/routing/issues_test.rb
+++ b/test/integration/routing/issues_test.rb
@@ -107,8 +107,8 @@ class RoutingIssuesTest < ActionController::IntegrationTest
def test_issues_form_update
["post", "put"].each do |method|
assert_routing(
- { :method => method, :path => "/projects/23/issues/new" },
- { :controller => 'issues', :action => 'new', :project_id => '23' }
+ { :method => method, :path => "/projects/23/issues/update_form" },
+ { :controller => 'issues', :action => 'update_form', :project_id => '23' }
)
end
end