Skip to content

Commit 6f30cbe

Browse files
committed
Fix broken unit tests (html_safe issues)
1 parent 7bb8436 commit 6f30cbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/helpers/application_helper_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class Cms::ApplicationHelper::DeleteButtonTest < ActionView::TestCase
6161
end
6262

6363
test "Writes out title if specified as a string" do
64-
expected_html = '<a href="#" class="button disabled delete_button http_delete confirm_with_title" id="delete_button" title="Really delete \'Server Error\'?"><span><span class="delete_img">&nbsp;</span>Delete</span></a>'
65-
assert_equal expected_html, delete_button(:title=>"Really delete \'Server Error\'?")
64+
expected_html = '<a href="#" class="button disabled delete_button http_delete confirm_with_title" id="delete_button" title="Really delete Server Error?"><span><span class="delete_img">&nbsp;</span>Delete</span></a>'
65+
assert_equal expected_html, delete_button(:title=>"Really delete Server Error?")
6666
end
6767

6868
test "default to disabled, but have an :enabled option" do

0 commit comments

Comments
 (0)