]> source.dussan.org Git - redmine.git/commitdiff
Rails4: fix "assert_template 'form'" fails at IssuesControllerTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 4 Feb 2014 10:07:02 +0000 (10:07 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 4 Feb 2014 10:07:02 +0000 (10:07 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12791 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb

index d3c1bf5291a6261e4f483caa5635eec17af1a7e3..cc03b7d5f7b40c9571c0d205e0a553991f40ae1b 100644 (file)
@@ -1712,7 +1712,7 @@ class IssuesControllerTest < ActionController::TestCase
                                 :priority_id => 5}
     assert_response :success
     assert_template 'update_form'
-    assert_template 'form'
+    assert_template :partial => '_form'
     assert_equal 'text/javascript', response.content_type
 
     issue = assigns(:issue)
@@ -2700,7 +2700,7 @@ class IssuesControllerTest < ActionController::TestCase
     assert_response :success
     assert_equal 'text/javascript', response.content_type
     assert_template 'update_form'
-    assert_template 'form'
+    assert_template :partial => '_form'
 
     issue = assigns(:issue)
     assert_kind_of Issue, issue
@@ -2749,7 +2749,7 @@ class IssuesControllerTest < ActionController::TestCase
                                         :description => 'This is the description',
                                         :priority_id => 5}
     assert_response :success
-    assert_template 'form'
+    assert_template :partial => '_form'
 
     issue = assigns(:issue)
     assert_kind_of Issue, issue