diff --git a/spec/helpers/tab_nav_helper_spec.rb b/spec/helpers/tab_nav_helper_spec.rb
index 89f867775..bd29f4c46 100644
--- a/spec/helpers/tab_nav_helper_spec.rb
+++ b/spec/helpers/tab_nav_helper_spec.rb
@@ -9,7 +9,7 @@ RSpec.describe TabNavHelper do
describe "#user_cell" do
it "returns user link and email separated by a newline character" do
expected_html = "#{current_user.name}\nUser #{current_user.email}"
- expect(user_cell(current_user)).to match(expected_html)
+ expect(CGI.unescapeHTML(user_cell(current_user))).to match(expected_html)
end
end