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

test/functional/calendars_controller_test.rb

index 8e55f789dcb6cdd3ef681439073f6be901f7f6fb..e67d05dfb95303d5bf4272e440054262517b8d78 100644 (file)
@@ -29,7 +29,7 @@ class CalendarsControllerTest < ActionController::TestCase
   def test_show
     get :show, :project_id => 1
     assert_response :success
-    assert_template 'calendar'
+    assert_template :partial => '_calendar'
     assert_not_nil assigns(:calendar)
   end
 
@@ -43,7 +43,7 @@ class CalendarsControllerTest < ActionController::TestCase
   def test_cross_project_calendar
     get :show
     assert_response :success
-    assert_template 'calendar'
+    assert_template :partial => '_calendar'
     assert_not_nil assigns(:calendar)
   end