From: Toshi MARUYAMA Date: Thu, 13 Feb 2014 08:17:04 +0000 (+0000) Subject: Rails4: fix PreviewsControllerTest assert_template failures X-Git-Tag: 2.5.0~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=49e0489bc8f6cabd9a9ad46965b5928242a79dde;p=redmine.git Rails4: fix PreviewsControllerTest assert_template failures
  1) Failure:
PreviewsControllerTest#test_preview_issue_notes [test/functional/previews_controller_test.rb:44]:
expecting <"preview"> but rendering with <["previews/issue"]>
git-svn-id: http://svn.redmine.org/redmine/trunk@12879 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/previews_controller_test.rb b/test/functional/previews_controller_test.rb index 195f74783..976af94e3 100644 --- a/test/functional/previews_controller_test.rb +++ b/test/functional/previews_controller_test.rb @@ -32,7 +32,7 @@ class PreviewsControllerTest < ActionController::TestCase @request.session[:user_id] = 2 post :issue, :project_id => '1', :issue => {:description => 'Foo'} assert_response :success - assert_template 'preview' + assert_template 'previews/issue' assert_not_nil assigns(:description) end @@ -41,7 +41,7 @@ class PreviewsControllerTest < ActionController::TestCase post :issue, :project_id => '1', :id => 1, :issue => {:description => Issue.find(1).description, :notes => 'Foo'} assert_response :success - assert_template 'preview' + assert_template 'previews/issue' assert_not_nil assigns(:notes) end @@ -49,7 +49,7 @@ class PreviewsControllerTest < ActionController::TestCase @request.session[:user_id] = 2 post :issue, :project_id => '1', :id => 1, :notes => 'Foo' assert_response :success - assert_template 'preview' + assert_template 'previews/issue' assert_not_nil assigns(:notes) assert_tag :p, :content => 'Foo' end