Skip to content

Commit

Permalink
fixed tests so that there is no more warnings.
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
holli committed Mar 18, 2012
1 parent accf834 commit 7cab8d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/cms_content_controller_test.rb
Expand Up @@ -22,15 +22,15 @@ 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)
assert_select "body[class='c_cms_content a_render_html']"
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)
Expand Down

0 comments on commit 7cab8d6

Please sign in to comment.