Escape HTML some factory strings

This commit is contained in:
Henne Vogelsang 2016-05-02 17:39:06 +02:00
parent ad0a8eecf2
commit 45bd31fad0
12 changed files with 21 additions and 22 deletions

View file

@ -9,9 +9,9 @@ describe 'admin/sponsors/index' do
)
assign :conference, @conference
render
expect(rendered).to include(@conference.sponsors.first.name)
expect(rendered).to include(CGI.escapeHTML(@conference.sponsors.first.name))
expect(rendered).to include(@conference.sponsors.first.website_url)
expect(rendered).to include(truncate(@conference.sponsors.first.description))
expect(rendered).to include(@conference.sponsorship_levels.first.title)
expect(rendered).to include(truncate(CGI.escapeHTML(@conference.sponsors.first.description)))
expect(rendered).to include(CGI.escapeHTML(@conference.sponsorship_levels.first.title))
end
end