Use Builder::XChar.encode instead of to_xs in spec
This commit is contained in:
parent
a488dd50c4
commit
8a759c3aca
1 changed files with 1 additions and 1 deletions
|
|
@ -283,7 +283,7 @@ STR
|
|||
it 'serializes the escaped, unprocessed message' do
|
||||
text = "[url](http://example.org)<script> alert('xss should be federated');</script>"
|
||||
@message.text = text
|
||||
@message.to_xml.to_s.should include text.to_xs
|
||||
@message.to_xml.to_s.should include Builder::XChar.encode(text)
|
||||
end
|
||||
|
||||
it 'serializes the message' do
|
||||
|
|
|
|||
Loading…
Reference in a new issue