Update tests for changes to HTML escaping in rails 3.2.8
This commit is contained in:
parent
d0db18da82
commit
3ec1a05988
1 changed files with 2 additions and 2 deletions
|
@ -190,7 +190,7 @@ class DiaryEntryControllerTest < ActionController::TestCase
|
||||||
end
|
end
|
||||||
assert_select "body", :count => 1 do
|
assert_select "body", :count => 1 do
|
||||||
assert_select "div#content", :count => 1 do
|
assert_select "div#content", :count => 1 do
|
||||||
assert_select "h2", :text => /#{entry.user.display_name}'s diary/, :count => 1
|
assert_select "h2", :text => /#{entry.user.display_name}'s diary/, :count => 1
|
||||||
assert_select "b", :text => /#{new_title}/, :count => 1
|
assert_select "b", :text => /#{new_title}/, :count => 1
|
||||||
# This next line won't work if the text has been run through the htmlize function
|
# This next line won't work if the text has been run through the htmlize function
|
||||||
# due to formatting that could be introduced
|
# due to formatting that could be introduced
|
||||||
|
@ -215,7 +215,7 @@ class DiaryEntryControllerTest < ActionController::TestCase
|
||||||
end
|
end
|
||||||
assert_select "body", :count => 1 do
|
assert_select "body", :count => 1 do
|
||||||
assert_select "div#content", :count => 1 do
|
assert_select "div#content", :count => 1 do
|
||||||
assert_select "h2", :text => /#{users(:normal_user).display_name}'s diary/, :count => 1
|
assert_select "h2", :text => /#{users(:normal_user).display_name}'s diary/, :count => 1
|
||||||
assert_select "b", :text => /#{new_title}/, :count => 1
|
assert_select "b", :text => /#{new_title}/, :count => 1
|
||||||
# This next line won't work if the text has been run through the htmlize function
|
# This next line won't work if the text has been run through the htmlize function
|
||||||
# due to formatting that could be introduced
|
# due to formatting that could be introduced
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue