]> source.dussan.org Git - redmine.git/commitdiff
Rails4: use "assert_template 'context_menus/time_entries'" at ContextMenusControllerTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 4 Feb 2014 23:51:07 +0000 (23:51 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 4 Feb 2014 23:51:07 +0000 (23:51 +0000)
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

test/functional/context_menus_controller_test.rb

index 0ee04884888dcbb345147274348ea2f75791fe79..0dfea6eeb6dcaf5bcf2d6c8dfa320eb95ba87e6e 100644 (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