summaryrefslogtreecommitdiffstats
path: root/test/functional/previews_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-13 08:17:04 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-02-13 08:17:04 +0000
commit49e0489bc8f6cabd9a9ad46965b5928242a79dde (patch)
treef632fc9589dcc77c792d4921d5bba75eba6dc8d4 /test/functional/previews_controller_test.rb
parent22c7e0b8df461a1b93fd7b7328416d5e5b7654ba (diff)
downloadredmine-49e0489bc8f6cabd9a9ad46965b5928242a79dde.tar.gz
redmine-49e0489bc8f6cabd9a9ad46965b5928242a79dde.zip
Rails4: fix PreviewsControllerTest assert_template failures
<pre> 1) Failure: PreviewsControllerTest#test_preview_issue_notes [test/functional/previews_controller_test.rb:44]: expecting <"preview"> but rendering with <["previews/issue"]> </pre> git-svn-id: http://svn.redmine.org/redmine/trunk@12879 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/previews_controller_test.rb')
-rw-r--r--test/functional/previews_controller_test.rb6
1 files changed, 3 insertions, 3 deletions
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