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:
parent
035c1b9a18
commit
8bdb66bf98
|
@ -233,7 +233,7 @@ class ContextMenusControllerTest < ActionController::TestCase
|
||||||
@request.session[:user_id] = 2
|
@request.session[:user_id] = 2
|
||||||
get :time_entries, :ids => [1, 2]
|
get :time_entries, :ids => [1, 2]
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'time_entries'
|
assert_template 'context_menus/time_entries'
|
||||||
|
|
||||||
assert_select 'a:not(.disabled)', :text => 'Edit'
|
assert_select 'a:not(.disabled)', :text => 'Edit'
|
||||||
end
|
end
|
||||||
|
@ -244,7 +244,7 @@ class ContextMenusControllerTest < ActionController::TestCase
|
||||||
|
|
||||||
get :time_entries, :ids => [1, 2]
|
get :time_entries, :ids => [1, 2]
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'time_entries'
|
assert_template 'context_menus/time_entries'
|
||||||
assert_select 'a.disabled', :text => 'Edit'
|
assert_select 'a.disabled', :text => 'Edit'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue