From 7cab8d61f9551f1497b1f7a0bc38a4d15d10631f Mon Sep 17 00:00:00 2001 From: Olli Huotari Date: Sun, 18 Mar 2012 17:03:00 +0200 Subject: [PATCH] fixed tests so that there is no more warnings. Before we got the following: DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply remove the handler name or pass render :handlers => [:erb] instead. (called from realtime at .../ree-1.8.7-2011.03/lib/ruby/1.8/benchmark.rb:308) --- test/functional/cms_content_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/cms_content_controller_test.rb b/test/functional/cms_content_controller_test.rb index 589e123c1..471fc4fc3 100644 --- a/test/functional/cms_content_controller_test.rb +++ b/test/functional/cms_content_controller_test.rb @@ -22,7 +22,7 @@ def test_render_page end def test_render_page_with_app_layout - cms_layouts(:default).update_attribute(:app_layout, 'cms_admin.html.erb') + cms_layouts(:default).update_attribute(:app_layout, 'cms_admin') get :render_html, :cms_path => '' assert_response :success assert assigns(:cms_page) @@ -30,7 +30,7 @@ def test_render_page_with_app_layout end def test_render_page_with_xhr - cms_layouts(:default).update_attribute(:app_layout, 'cms_admin.html.erb') + cms_layouts(:default).update_attribute(:app_layout, 'cms_admin') xhr :get, :render_html, :cms_path => '' assert_response :success assert assigns(:cms_page)