From: Toshi MARUYAMA Date: Tue, 4 Feb 2014 23:50:49 +0000 (+0000) Subject: Rails4: fix "assert_template 'context_menu'" fails at ContextMenusControllerTest X-Git-Tag: 2.5.0~102 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=035c1b9a18d3c074955e4b537ebc583ff25237c9;p=redmine.git Rails4: fix "assert_template 'context_menu'" fails at ContextMenusControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@12798 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb index 448be030a..0ee048848 100644 --- a/test/functional/context_menus_controller_test.rb +++ b/test/functional/context_menus_controller_test.rb @@ -37,7 +37,7 @@ class ContextMenusControllerTest < ActionController::TestCase @request.session[:user_id] = 2 get :issues, :ids => [1] assert_response :success - assert_template 'context_menu' + assert_template 'context_menus/issues' assert_select 'a.icon-edit[href=?]', '/issues/1/edit', :text => 'Edit' assert_select 'a.icon-copy[href=?]', '/projects/ecookbook/issues/1/copy', :text => 'Copy' @@ -58,7 +58,7 @@ class ContextMenusControllerTest < ActionController::TestCase def test_context_menu_one_issue_by_anonymous get :issues, :ids => [1] assert_response :success - assert_template 'context_menu' + assert_template 'context_menus/issues' assert_tag :tag => 'a', :content => 'Delete', :attributes => { :href => '#', :class => 'icon-del disabled' } @@ -68,7 +68,7 @@ class ContextMenusControllerTest < ActionController::TestCase @request.session[:user_id] = 2 get :issues, :ids => [1, 2] assert_response :success - assert_template 'context_menu' + assert_template 'context_menus/issues' assert_not_nil assigns(:issues) assert_equal [1, 2], assigns(:issues).map(&:id).sort @@ -87,7 +87,7 @@ class ContextMenusControllerTest < ActionController::TestCase @request.session[:user_id] = 2 get :issues, :ids => [1, 2, 6] assert_response :success - assert_template 'context_menu' + assert_template 'context_menus/issues' assert_not_nil assigns(:issues) assert_equal [1, 2, 6], assigns(:issues).map(&:id).sort @@ -202,7 +202,7 @@ class ContextMenusControllerTest < ActionController::TestCase @request.session[:user_id] = 2 get :issues, :ids => [1] assert_response :success - assert_template 'context_menu' + assert_template 'context_menus/issues' assert_select 'a[href=?]', '/issues/bulk_update?ids%5B%5D=1&issue%5Bassigned_to_id%5D=2', :text => / me / end @@ -213,7 +213,7 @@ class ContextMenusControllerTest < ActionController::TestCase get :issues, :ids => [1, 4] assert_response :success - assert_template 'context_menu' + assert_template 'context_menus/issues' assert_include version, assigns(:versions) assert_select 'a', :text => 'eCookbook - Shared'