Spec Fix:Ensure Nav Link Names are Escaped for Assertion (#10975)

This commit is contained in:
Molly Struve 2020-10-21 05:18:29 -04:00 committed by GitHub
parent 7ba7529e4f
commit 84d986a839
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ RSpec.describe "StoriesIndex", type: :request do
it "renders page with proper sidebar" do
navigation_link = create(:navigation_link)
get "/"
expect(response.body).to include(navigation_link.name)
expect(response.body).to include(CGI.escapeHTML(navigation_link.name))
end
it "renders left display_ads when published and approved" do