Rails4: use "assert_template 'context_menus/time_entries'" at ContextMenusControllerTest

This asserting does not fail, but use same logic with "assert_template 'context_menus/issues'"

git-svn-id: http://svn.redmine.org/redmine/trunk@12799 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-02-04 23:51:07 +00:00
parent 035c1b9a18
commit 8bdb66bf98
1 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ class ContextMenusControllerTest < ActionController::TestCase
@request.session[:user_id] = 2
get :time_entries, :ids => [1, 2]
assert_response :success
assert_template 'time_entries'
assert_template 'context_menus/time_entries'
assert_select 'a:not(.disabled)', :text => 'Edit'
end
@ -244,7 +244,7 @@ class ContextMenusControllerTest < ActionController::TestCase
get :time_entries, :ids => [1, 2]
assert_response :success
assert_template 'time_entries'
assert_template 'context_menus/time_entries'
assert_select 'a.disabled', :text => 'Edit'
end
end