diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-04 23:50:49 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-04 23:50:49 +0000 |
commit | 035c1b9a18d3c074955e4b537ebc583ff25237c9 (patch) | |
tree | 2b95c728153c722f609107bbd7b5004423d865cd /test/functional/context_menus_controller_test.rb | |
parent | 09bbfad124d24ba9cc418980d99c70cdf8b49d01 (diff) | |
download | redmine-035c1b9a18d3c074955e4b537ebc583ff25237c9.tar.gz redmine-035c1b9a18d3c074955e4b537ebc583ff25237c9.zip |
Rails4: fix "assert_template 'context_menu'" fails at ContextMenusControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12798 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/context_menus_controller_test.rb')
-rw-r--r-- | test/functional/context_menus_controller_test.rb | 12 |
1 files changed, 6 insertions, 6 deletions
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' |