From 6cc4c6fe4a3e249f736ffe7d6761bfbc982e12ec Mon Sep 17 00:00:00 2001 From: Molly Struve Date: Tue, 16 Jun 2020 14:19:41 -0500 Subject: [PATCH] Flaky Spec Fix: Dont CGI Escape Title Compare (#8714) --- .../articles/user_visits_articles_by_tag_spec.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/system/articles/user_visits_articles_by_tag_spec.rb b/spec/system/articles/user_visits_articles_by_tag_spec.rb index 25e3e4270..50369cc67 100644 --- a/spec/system/articles/user_visits_articles_by_tag_spec.rb +++ b/spec/system/articles/user_visits_articles_by_tag_spec.rb @@ -38,9 +38,9 @@ RSpec.describe "User visits articles by tag", type: :system do it "shows the correct articles" do within("#articles-list") do - expect(page).to have_text(CGI.escapeHTML(article.title)) - expect(page).to have_text(CGI.escapeHTML(article3.title)) - expect(page).not_to have_text(CGI.escapeHTML(article2.title)) + expect(page).to have_text(article.title) + expect(page).to have_text(article3.title) + expect(page).not_to have_text(article2.title) end end @@ -48,9 +48,9 @@ RSpec.describe "User visits articles by tag", type: :system do click_on "WEEK" within("#articles-list") do - expect(page).to have_text(CGI.escapeHTML(article.title)) - expect(page).not_to have_text(CGI.escapeHTML(article3.title)) - expect(page).not_to have_text(CGI.escapeHTML(article2.title)) + expect(page).to have_text(article.title) + expect(page).not_to have_text(article3.title) + expect(page).not_to have_text(article2.title) end end end