From dcf73dee66154e5215dac640fae99ee86205c7d2 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 4 Dec 2014 18:29:53 -0200 Subject: [PATCH] Fix tests --- test/unit/cms_helper_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/cms_helper_test.rb b/test/unit/cms_helper_test.rb index ff1a4e8..0ac6b56 100644 --- a/test/unit/cms_helper_test.rb +++ b/test/unit/cms_helper_test.rb @@ -90,7 +90,7 @@ class CmsHelperTest < ActionView::TestCase profile = fast_create(Profile) name = 'My folder' folder = fast_create(Folder, :name => name, :profile_id => profile.id) - confirm_message = "Are you sure that you want to remove the folder \"#{name}\"? Note that all the items inside it will also be removed!" + confirm_message = CGI.escapeHTML("Are you sure that you want to remove the folder \"#{name}\"? Note that all the items inside it will also be removed!") expects(:link_to).with('Delete', {:action => 'destroy', :id => folder.id}, :method => :post, :confirm => confirm_message, :class => 'button with-text icon-delete', :title => nil) result = display_delete_button(folder) @@ -101,7 +101,7 @@ class CmsHelperTest < ActionView::TestCase profile = fast_create(Profile) name = 'My article' article = fast_create(TinyMceArticle, :name => name, :profile_id => profile.id) - confirm_message = "Are you sure that you want to remove the item \"#{name}\"?" + confirm_message = CGI.escapeHTML("Are you sure that you want to remove the item \"#{name}\"?") expects(:link_to).with('Delete', {:action => 'destroy', :id => article.id}, :method => :post, :confirm => confirm_message, :class => 'button with-text icon-delete', :title => nil) result = display_delete_button(article) -- libgit2 0.21.2